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
- ImportContext.cs
- ValidationErrorEventArgs.cs
- BuiltInExpr.cs
- FixedSOMPageConstructor.cs
- TabOrder.cs
- Attributes.cs
- ScrollBar.cs
- WebPartDescriptionCollection.cs
- QueryOutputWriter.cs
- UnsafeNativeMethods.cs
- InputReportEventArgs.cs
- DbConnectionFactory.cs
- OleDbStruct.cs
- XmlText.cs
- PaperSize.cs
- MailMessageEventArgs.cs
- WebPartConnectionsEventArgs.cs
- ToolStripRendererSwitcher.cs
- DataServices.cs
- TraceXPathNavigator.cs
- CorrelationValidator.cs
- SQLInt16Storage.cs
- ListItemParagraph.cs
- Request.cs
- Compiler.cs
- ShapeTypeface.cs
- DataRelationCollection.cs
- BufferedGraphicsManager.cs
- HeaderElement.cs
- Win32Exception.cs
- Byte.cs
- TextTreeInsertElementUndoUnit.cs
- XmlSerializationReader.cs
- SHA512.cs
- AssociatedControlConverter.cs
- TaskHelper.cs
- ContextMenu.cs
- TerminatorSinks.cs
- XmlAutoDetectWriter.cs
- ADRole.cs
- EditingMode.cs
- ToolStripMenuItemCodeDomSerializer.cs
- ListMarkerLine.cs
- CaretElement.cs
- StandardBindingElementCollection.cs
- WindowHideOrCloseTracker.cs
- AlphabetConverter.cs
- HttpCacheVaryByContentEncodings.cs
- TemplateContainer.cs
- OleDbErrorCollection.cs
- ToolStripGripRenderEventArgs.cs
- DatatypeImplementation.cs
- ResourcesBuildProvider.cs
- RoutedPropertyChangedEventArgs.cs
- ITextView.cs
- CacheAxisQuery.cs
- ToolboxComponentsCreatedEventArgs.cs
- SHA256CryptoServiceProvider.cs
- Vector.cs
- Update.cs
- DataTableNewRowEvent.cs
- ComplexLine.cs
- SequenceRangeCollection.cs
- InstalledFontCollection.cs
- ApplicationTrust.cs
- ConstraintManager.cs
- SchemaEntity.cs
- Pick.cs
- MediaEntryAttribute.cs
- TreeNodeSelectionProcessor.cs
- Boolean.cs
- SpecialNameAttribute.cs
- TypeTypeConverter.cs
- LocalFileSettingsProvider.cs
- GeneralTransform3D.cs
- XmlNodeList.cs
- Fx.cs
- CLSCompliantAttribute.cs
- ProfileSettings.cs
- PackUriHelper.cs
- Binding.cs
- Rectangle.cs
- SvcMapFileSerializer.cs
- MenuAutomationPeer.cs
- AssociationType.cs
- SqlConnectionPoolGroupProviderInfo.cs
- BindingGroup.cs
- DesignTimeDataBinding.cs
- ListViewContainer.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ListViewCommandEventArgs.cs
- CoreSwitches.cs
- Compress.cs
- LassoHelper.cs
- ResourceDisplayNameAttribute.cs
- NodeInfo.cs
- SQLConvert.cs
- HtmlWindow.cs
- PriorityBindingExpression.cs
- HostingEnvironmentException.cs