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
- ComponentEditorPage.cs
- FieldNameLookup.cs
- Separator.cs
- CfgSemanticTag.cs
- TrackBarDesigner.cs
- DataGridBoolColumn.cs
- BrushValueSerializer.cs
- ManagementException.cs
- Crc32.cs
- TextViewBase.cs
- StyleSelector.cs
- EdmRelationshipRoleAttribute.cs
- OlePropertyStructs.cs
- EditingMode.cs
- SafeThemeHandle.cs
- HTMLTextWriter.cs
- RegexGroupCollection.cs
- wgx_render.cs
- ClientType.cs
- ComponentResourceKeyConverter.cs
- XPathSingletonIterator.cs
- SystemIPInterfaceProperties.cs
- Header.cs
- DrawingContextWalker.cs
- SynchronizedCollection.cs
- WebHeaderCollection.cs
- TraceContextEventArgs.cs
- StringValueSerializer.cs
- TaskHelper.cs
- DBCommand.cs
- BindingMemberInfo.cs
- BidOverLoads.cs
- Helper.cs
- Soap12ProtocolImporter.cs
- QueryMath.cs
- EventPrivateKey.cs
- GlyphingCache.cs
- ToolStripItemRenderEventArgs.cs
- HandlerBase.cs
- Renderer.cs
- PowerModeChangedEventArgs.cs
- HtmlInputPassword.cs
- ResolvedKeyFrameEntry.cs
- RectAnimationClockResource.cs
- CommonDialog.cs
- DesignerDataSourceView.cs
- Site.cs
- Vector3DAnimation.cs
- Membership.cs
- MimeReturn.cs
- RegexGroup.cs
- ComUdtElement.cs
- BindingsCollection.cs
- CodeStatementCollection.cs
- formatstringdialog.cs
- ButtonRenderer.cs
- ExpressionBinding.cs
- KeySplineConverter.cs
- StylusPointPropertyId.cs
- Misc.cs
- SoapIncludeAttribute.cs
- TdsParser.cs
- XmlCharType.cs
- XmlReader.cs
- RSAPKCS1SignatureDeformatter.cs
- FontTypeConverter.cs
- ConfigXmlSignificantWhitespace.cs
- SecureUICommand.cs
- NavigationCommands.cs
- PeerCollaboration.cs
- TextSelectionHighlightLayer.cs
- NetCodeGroup.cs
- QuestionEventArgs.cs
- CharacterHit.cs
- EventLogPermission.cs
- RequestQueue.cs
- CommittableTransaction.cs
- NetStream.cs
- CalendarDay.cs
- SocketStream.cs
- StrongNameIdentityPermission.cs
- TrackingMemoryStream.cs
- PointAnimationBase.cs
- EncodingFallbackAwareXmlTextWriter.cs
- StringAnimationBase.cs
- DesignerDataView.cs
- EntityDesignerUtils.cs
- ArrangedElement.cs
- Encoder.cs
- Binding.cs
- RectangleHotSpot.cs
- ComplexLine.cs
- ConfigurationManager.cs
- HtmlEncodedRawTextWriter.cs
- ProgressBarAutomationPeer.cs
- ProtocolsSection.cs
- CopyCodeAction.cs
- CopyCodeAction.cs
- RepeatBehavior.cs
- CompositeControlDesigner.cs