Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / embossbitmapeffect.cs / 1407647 / 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 System.Security; using SecurityHelper=MS.Internal.SecurityHelper; #endregion namespace System.Windows.Media.Effects { ////// The class definition for EmbossBitmapEffect /// public partial class EmbossBitmapEffect { ////// Constructor /// public EmbossBitmapEffect() { } ////// Creates the unmanaged effect handle /// ////// Critical - returns a security critical type SafeHandle. /// Safe - Always returns null. /// [SecuritySafeCritical] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] unsafe protected override SafeHandle CreateUnmanagedEffect() { return null; } ////// /// 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] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); } } } // 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
- WindowsScroll.cs
- RoamingStoreFile.cs
- Mappings.cs
- SendMailErrorEventArgs.cs
- ProfileParameter.cs
- FrameworkElement.cs
- FloatMinMaxAggregationOperator.cs
- ResourceReferenceExpressionConverter.cs
- TextChangedEventArgs.cs
- MarshalByValueComponent.cs
- MobileControlDesigner.cs
- DataGridViewAccessibleObject.cs
- BitmapScalingModeValidation.cs
- XPathNodePointer.cs
- glyphs.cs
- ServiceElementCollection.cs
- Comparer.cs
- XsdValidatingReader.cs
- TabItemWrapperAutomationPeer.cs
- BaseDataBoundControl.cs
- XslNumber.cs
- XmlElementList.cs
- BindableTemplateBuilder.cs
- CodeDirectoryCompiler.cs
- ContextMenuStripGroup.cs
- FunctionGenerator.cs
- BackgroundFormatInfo.cs
- OleDbConnectionInternal.cs
- Pool.cs
- ShaperBuffers.cs
- MenuItemStyleCollection.cs
- CatalogZoneBase.cs
- DataGridSortCommandEventArgs.cs
- EventDescriptorCollection.cs
- CompressedStack.cs
- SqlTypeConverter.cs
- TypeDescriptionProvider.cs
- SetterBase.cs
- ProfileManager.cs
- StringPropertyBuilder.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Container.cs
- XmlnsCache.cs
- SafeWaitHandle.cs
- SiteMapDataSource.cs
- DiscreteKeyFrames.cs
- XmlIlVisitor.cs
- ColorConverter.cs
- QuaternionAnimationUsingKeyFrames.cs
- ImageMetadata.cs
- CmsUtils.cs
- Parameter.cs
- Drawing.cs
- CryptoApi.cs
- errorpatternmatcher.cs
- MouseBinding.cs
- CodeIdentifiers.cs
- GeneralTransform3D.cs
- OutgoingWebResponseContext.cs
- X509WindowsSecurityToken.cs
- XmlCharCheckingReader.cs
- PhotoPrintingIntent.cs
- SqlVisitor.cs
- FileDialogCustomPlace.cs
- DefaultObjectMappingItemCollection.cs
- ListSortDescriptionCollection.cs
- HttpDictionary.cs
- StylusButtonEventArgs.cs
- MessageSmuggler.cs
- Completion.cs
- SortQuery.cs
- HttpHandlerAction.cs
- PenThreadPool.cs
- SynchronizationLockException.cs
- SelectionEditingBehavior.cs
- EntityViewGenerator.cs
- CodeTypeMember.cs
- IdentityReference.cs
- CryptoProvider.cs
- Underline.cs
- ObjectItemCachedAssemblyLoader.cs
- MaskedTextBoxTextEditor.cs
- MethodInfo.cs
- ResourceReferenceKeyNotFoundException.cs
- ConfigErrorGlyph.cs
- Soap12ProtocolReflector.cs
- RadioButtonRenderer.cs
- UserControl.cs
- EncryptedReference.cs
- LogReservationCollection.cs
- TreeNodeCollectionEditorDialog.cs
- BindingValueChangedEventArgs.cs
- HScrollProperties.cs
- ConstraintConverter.cs
- WebPartTransformerAttribute.cs
- VectorKeyFrameCollection.cs
- ParagraphVisual.cs
- ApplicationManager.cs
- StorageEntityTypeMapping.cs
- ContentPresenter.cs