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
- PackWebRequestFactory.cs
- ApplicationCommands.cs
- ComponentCollection.cs
- ApplicationFileParser.cs
- entityreference_tresulttype.cs
- XomlCompilerError.cs
- Transactions.cs
- UriSection.cs
- VirtualPathUtility.cs
- DetailsViewModeEventArgs.cs
- Cursor.cs
- BoolLiteral.cs
- XPathPatternBuilder.cs
- TokenBasedSet.cs
- ObjectReaderCompiler.cs
- DataGridViewCellFormattingEventArgs.cs
- latinshape.cs
- ScalarRestriction.cs
- SkinBuilder.cs
- ImplicitInputBrush.cs
- RSAOAEPKeyExchangeFormatter.cs
- ToggleButton.cs
- ResXDataNode.cs
- IsolatedStorageFilePermission.cs
- TrackPoint.cs
- SQLInt16.cs
- ClonableStack.cs
- WindowPattern.cs
- ScriptServiceAttribute.cs
- DrawingDrawingContext.cs
- SmiConnection.cs
- _emptywebproxy.cs
- IgnoreDataMemberAttribute.cs
- TreeNodeStyle.cs
- CachedFontFamily.cs
- CategoryNameCollection.cs
- TemplateControlParser.cs
- ValidationError.cs
- MimeWriter.cs
- log.cs
- WindowClosedEventArgs.cs
- QuaternionValueSerializer.cs
- AttachedPropertyDescriptor.cs
- CodeMethodInvokeExpression.cs
- VirtualizingPanel.cs
- ITextView.cs
- TrackBarRenderer.cs
- TargetInvocationException.cs
- SqlDataSource.cs
- StructuralObject.cs
- ListBoxChrome.cs
- GenericWebPart.cs
- PathGeometry.cs
- MonitoringDescriptionAttribute.cs
- NamedPipeWorkerProcess.cs
- AccessKeyManager.cs
- ExpressionLink.cs
- RequestBringIntoViewEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- BuildProvidersCompiler.cs
- DocumentsTrace.cs
- AnnotationResourceChangedEventArgs.cs
- BeginStoryboard.cs
- SerialErrors.cs
- TextModifierScope.cs
- ResourcesBuildProvider.cs
- Column.cs
- SmtpMail.cs
- XmlDataSourceView.cs
- Point.cs
- XmlSerializer.cs
- AttributeXamlType.cs
- shaperfactory.cs
- DataGridViewColumnStateChangedEventArgs.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BreakRecordTable.cs
- DetailsViewDeleteEventArgs.cs
- CollectionChangedEventManager.cs
- TransportElement.cs
- ClickablePoint.cs
- HtmlTableRow.cs
- SafeBitVector32.cs
- OleDbPropertySetGuid.cs
- SafeReadContext.cs
- XPathNodeInfoAtom.cs
- HtmlButton.cs
- JpegBitmapEncoder.cs
- RangeExpression.cs
- ListItemConverter.cs
- Table.cs
- GraphicsContainer.cs
- AttributeProviderAttribute.cs
- AttributeQuery.cs
- RSAPKCS1SignatureDeformatter.cs
- Int32CollectionValueSerializer.cs
- XPathSingletonIterator.cs
- _Rfc2616CacheValidators.cs
- GPPOINT.cs
- mediapermission.cs
- ApplicationHost.cs