Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Effects / OuterGlowBitmapEffect.cs / 1 / OuterGlowBitmapEffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: OuterGlowBitmapEffect.cs //----------------------------------------------------------------------------- using MS.Internal; using System; using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal.PresentationCore; using System.Security; namespace System.Windows.Media.Effects { ////// OuterGlowBitmapEffectPrimitive /// public sealed partial class OuterGlowBitmapEffect : BitmapEffect { ////// Constructor /// public OuterGlowBitmapEffect() { } ////// Creates the unmanaged effect handle /// unsafe protected override SafeHandle CreateUnmanagedEffect() { return Create(new Guid(0xe2161bdd, 0x7eb6, 0x4725, 0x9c, 0x0b, 0x8a, 0x2a, 0x1b, 0x4f, 0x06, 0x67)); } ////// 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, "GlowSize", this.GlowSize); BitmapEffect.SetValue(unmanagedEffect, "GlowColor", this.GlowColor); BitmapEffect.SetValue(unmanagedEffect, "Opacity", this.Opacity); BitmapEffect.SetValue(unmanagedEffect, "Noise", this.Noise); } } } // 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
- ContainerFilterService.cs
- DataServiceExpressionVisitor.cs
- CriticalHandle.cs
- NullableIntMinMaxAggregationOperator.cs
- CodeVariableReferenceExpression.cs
- ProjectedSlot.cs
- UriTemplateClientFormatter.cs
- ColorTransformHelper.cs
- RuleSetCollection.cs
- TagPrefixInfo.cs
- cookiecollection.cs
- ParameterBuilder.cs
- AsyncStreamReader.cs
- StrokeDescriptor.cs
- TableDetailsCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- GeneralTransform3DTo2DTo3D.cs
- StartUpEventArgs.cs
- EntityProviderServices.cs
- SmtpException.cs
- XmlEncoding.cs
- regiisutil.cs
- StylusPointPropertyInfo.cs
- BufferAllocator.cs
- FieldDescriptor.cs
- SR.cs
- SchemaImporterExtensionElement.cs
- LongAverageAggregationOperator.cs
- ExtenderControl.cs
- CompatibleComparer.cs
- BypassElement.cs
- CodeDOMUtility.cs
- NullableDoubleAverageAggregationOperator.cs
- WebPartTracker.cs
- LogicalExpressionTypeConverter.cs
- ValidationErrorCollection.cs
- SamlSecurityTokenAuthenticator.cs
- GatewayDefinition.cs
- Itemizer.cs
- CookieHandler.cs
- EntityDataSourceWizardForm.cs
- UnsafeNativeMethods.cs
- HttpFileCollectionWrapper.cs
- XamlSerializationHelper.cs
- Cursor.cs
- ZipIOExtraFieldZip64Element.cs
- Asn1Utilities.cs
- DataStreams.cs
- XmlSchemaRedefine.cs
- SqlParameter.cs
- SplitterCancelEvent.cs
- WebConfigurationHostFileChange.cs
- XmlDataSourceView.cs
- RemotingClientProxy.cs
- XPathScanner.cs
- SQlBooleanStorage.cs
- GB18030Encoding.cs
- ProcessProtocolHandler.cs
- HuffCodec.cs
- SoapInteropTypes.cs
- TagMapCollection.cs
- HttpHandlerAction.cs
- keycontainerpermission.cs
- HttpModuleAction.cs
- XNameConverter.cs
- XmlNode.cs
- DocumentPageTextView.cs
- RtfToken.cs
- NativeMethods.cs
- DocumentOutline.cs
- XmlAnyElementAttributes.cs
- ResourceKey.cs
- DataGridTablesFactory.cs
- AnimationLayer.cs
- FrameworkContentElement.cs
- MexBindingBindingCollectionElement.cs
- COM2Enum.cs
- HashMembershipCondition.cs
- ForAllOperator.cs
- EdmScalarPropertyAttribute.cs
- StretchValidation.cs
- Hex.cs
- SQLInt32Storage.cs
- TokenizerHelper.cs
- ObjectQueryProvider.cs
- ImageProxy.cs
- Partitioner.cs
- PeerService.cs
- NumericUpDownAcceleration.cs
- UpdateCompiler.cs
- Point4DConverter.cs
- RoleService.cs
- SimpleApplicationHost.cs
- OracleNumber.cs
- WpfXamlMember.cs
- BorderGapMaskConverter.cs
- SqlPersonalizationProvider.cs
- ProcessModelInfo.cs
- MetaData.cs
- ResourceAssociationType.cs