Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Effects / embossbitmapeffect.cs / 1 / embossbitmapeffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectEmboss.cs //----------------------------------------------------------------------------- #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; using System.Security; #endregion namespace System.Windows.Media.Effects { ////// The class definition for EmbossBitmapEffect /// public partial class EmbossBitmapEffect { ////// Constructor /// public EmbossBitmapEffect() { } ////// Creates the unmanaged effect handle /// unsafe protected override SafeHandle CreateUnmanagedEffect() { return Create(new Guid(0xcd299846, 0x824f, 0x47ec, 0xa0, 0x07, 0x12, 0xaa, 0x76, 0x7f, 0x28, 0x16)); } ////// /// Update (propagetes) properties to the unmanaged effect /// ////// This method demands permission because effects should not be run /// in partial trust. /// /// SecurityCritical - because SetValue has a link demand /// SecutiryTreatAsSafe - because it demans UIWindow permission /// [SecurityCritical, SecurityTreatAsSafe] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); BitmapEffect.SetValue(unmanagedEffect, "LightAngle", this.LightAngle); BitmapEffect.SetValue(unmanagedEffect, "Relief", this.Relief); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentRenameEvent.cs
- PropertySegmentSerializer.cs
- MasterPageCodeDomTreeGenerator.cs
- ExecutorLocksHeldException.cs
- UInt64.cs
- ContextStaticAttribute.cs
- ParallelRangeManager.cs
- ObjectKeyFrameCollection.cs
- IisTraceListener.cs
- Win32.cs
- InternalConfigHost.cs
- SqlBulkCopyColumnMapping.cs
- ThemeDictionaryExtension.cs
- SymLanguageType.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataGridColumnHeadersPresenter.cs
- BulletedList.cs
- _NestedSingleAsyncResult.cs
- ApplicationFileParser.cs
- EventProviderWriter.cs
- OwnerDrawPropertyBag.cs
- CompressionTransform.cs
- BmpBitmapEncoder.cs
- ImagingCache.cs
- TransformConverter.cs
- Internal.cs
- DirectionalLight.cs
- StreamInfo.cs
- CqlQuery.cs
- Freezable.cs
- SQLBytesStorage.cs
- XmlNamespaceManager.cs
- RootBrowserWindowAutomationPeer.cs
- RetrieveVirtualItemEventArgs.cs
- BaseComponentEditor.cs
- StringBuilder.cs
- HttpDebugHandler.cs
- InstanceLockedException.cs
- SoapAttributeAttribute.cs
- FormViewRow.cs
- TriggerAction.cs
- ToolStripMenuItem.cs
- TabPanel.cs
- SqlBuilder.cs
- ToolBarOverflowPanel.cs
- HttpCacheVary.cs
- WebPartConnectionsDisconnectVerb.cs
- EmptyElement.cs
- OperandQuery.cs
- InvalidProgramException.cs
- mediaeventargs.cs
- DataBindingList.cs
- RsaSecurityKey.cs
- ImageConverter.cs
- UserNameSecurityTokenAuthenticator.cs
- RangeBase.cs
- ListViewDeleteEventArgs.cs
- WebControlToolBoxItem.cs
- AssemblyAttributes.cs
- DeclarativeExpressionConditionDeclaration.cs
- PermissionToken.cs
- AnimationStorage.cs
- ClientSideProviderDescription.cs
- iisPickupDirectory.cs
- FormatConvertedBitmap.cs
- CustomCredentialPolicy.cs
- DesignConnectionCollection.cs
- UIPermission.cs
- XmlUrlResolver.cs
- GridView.cs
- AliasGenerator.cs
- SequentialActivityDesigner.cs
- IsolatedStorageFilePermission.cs
- PropertyItem.cs
- PaperSource.cs
- RowToFieldTransformer.cs
- CqlLexerHelpers.cs
- ExpressionParser.cs
- TextBreakpoint.cs
- SctClaimSerializer.cs
- updateconfighost.cs
- HotCommands.cs
- SQLInt64Storage.cs
- ConnectorMovedEventArgs.cs
- GlobalizationSection.cs
- TransactionInformation.cs
- XsdValidatingReader.cs
- IdentitySection.cs
- DbParameterCollection.cs
- oledbmetadatacollectionnames.cs
- WebPartsSection.cs
- DataSourceHelper.cs
- ReadOnlyDictionary.cs
- DbParameterHelper.cs
- Assembly.cs
- HttpFileCollectionBase.cs
- EmptyEnumerator.cs
- ExpressionQuoter.cs
- HtmlControlAdapter.cs
- GeometryCollection.cs