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
- VScrollBar.cs
- WebPartConnectionsCancelEventArgs.cs
- Vector3D.cs
- PolyLineSegment.cs
- ListViewGroup.cs
- xml.cs
- SecurityTraceRecordHelper.cs
- DictationGrammar.cs
- RotateTransform.cs
- SectionInput.cs
- DataGridViewSelectedColumnCollection.cs
- BrushValueSerializer.cs
- MiniParameterInfo.cs
- DesignerLoader.cs
- Block.cs
- BuildTopDownAttribute.cs
- XmlRawWriter.cs
- TableItemPattern.cs
- ServicePointManager.cs
- ExpressionBuilderCollection.cs
- ContentType.cs
- DescendantOverDescendantQuery.cs
- FileDialogPermission.cs
- ViewStateException.cs
- PathFigureCollection.cs
- TransactionWaitAsyncResult.cs
- DiscoveryProxy.cs
- KeyTime.cs
- DrawingContext.cs
- X509CertificateCollection.cs
- SqlProvider.cs
- PagesChangedEventArgs.cs
- ListViewDeleteEventArgs.cs
- DaylightTime.cs
- DiscoveryEndpoint.cs
- DesignerActionUI.cs
- HTMLTagNameToTypeMapper.cs
- HttpModuleActionCollection.cs
- XamlTreeBuilder.cs
- RayMeshGeometry3DHitTestResult.cs
- LoadedOrUnloadedOperation.cs
- ClientScriptManager.cs
- WriterOutput.cs
- MultiPageTextView.cs
- ObjectItemCollection.cs
- TimelineGroup.cs
- SchemaElementLookUpTable.cs
- HttpProfileGroupBase.cs
- MemberDescriptor.cs
- Effect.cs
- MenuCommand.cs
- AppSettingsSection.cs
- TypeInitializationException.cs
- KnownTypesProvider.cs
- Visitor.cs
- SrgsSemanticInterpretationTag.cs
- WebException.cs
- MetabaseReader.cs
- XmlArrayAttribute.cs
- ScrollData.cs
- ItemCheckEvent.cs
- CryptoStream.cs
- BinaryObjectInfo.cs
- NativeCompoundFileAPIs.cs
- Util.cs
- FloatUtil.cs
- WebEventCodes.cs
- GregorianCalendar.cs
- DataChangedEventManager.cs
- ReflectPropertyDescriptor.cs
- StringTraceRecord.cs
- KnownIds.cs
- ItemCollection.cs
- FileAuthorizationModule.cs
- MailHeaderInfo.cs
- XmlBaseReader.cs
- WebPartZoneCollection.cs
- AsyncPostBackErrorEventArgs.cs
- CompModHelpers.cs
- HeaderUtility.cs
- TemplateBuilder.cs
- SecurityContext.cs
- FrameworkElementAutomationPeer.cs
- XmlValueConverter.cs
- XmlSchemaObject.cs
- FullTextLine.cs
- PrimitiveXmlSerializers.cs
- ThreadExceptionDialog.cs
- WindowsListViewItem.cs
- TdsParameterSetter.cs
- OutputCacheProfile.cs
- DefaultPrintController.cs
- NullableIntSumAggregationOperator.cs
- IntegerValidator.cs
- Vector3D.cs
- CodeGenerationManager.cs
- contentDescriptor.cs
- TrimSurroundingWhitespaceAttribute.cs
- WsatConfiguration.cs
- CoTaskMemSafeHandle.cs