Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectInput.cs / 1 / BitmapEffectInput.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectInput.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 System.Windows.Media.Imaging; using System.Collections.Generic; namespace System.Windows.Media.Effects { ////// BitmapEffect class /// public sealed partial class BitmapEffectInput { private static BitmapSource s_defaultInputSource; ////// Constructor /// public BitmapEffectInput() { } ////// Constructor /// /// input image public BitmapEffectInput(BitmapSource input) { Input = input; } ////// ShouldSerializeInput - this is called by the serializer to determine whether or not to /// serialize the Input property. /// [EditorBrowsable(EditorBrowsableState.Never)] public bool ShouldSerializeInput() { return (Input != BitmapEffectInput.ContextInputSource); } ////// Returns a sentinel value representing the source that is derived from context /// public static BitmapSource ContextInputSource { get { if (s_defaultInputSource == null) { BitmapSource source = new UnmanagedBitmapWrapper(true); source.Freeze(); s_defaultInputSource = source; } return s_defaultInputSource; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectInput.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 System.Windows.Media.Imaging; using System.Collections.Generic; namespace System.Windows.Media.Effects { ////// BitmapEffect class /// public sealed partial class BitmapEffectInput { private static BitmapSource s_defaultInputSource; ////// Constructor /// public BitmapEffectInput() { } ////// Constructor /// /// input image public BitmapEffectInput(BitmapSource input) { Input = input; } ////// ShouldSerializeInput - this is called by the serializer to determine whether or not to /// serialize the Input property. /// [EditorBrowsable(EditorBrowsableState.Never)] public bool ShouldSerializeInput() { return (Input != BitmapEffectInput.ContextInputSource); } ////// Returns a sentinel value representing the source that is derived from context /// public static BitmapSource ContextInputSource { get { if (s_defaultInputSource == null) { BitmapSource source = new UnmanagedBitmapWrapper(true); source.Freeze(); s_defaultInputSource = source; } return s_defaultInputSource; } } } } // 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
- MultipleViewProviderWrapper.cs
- PostBackOptions.cs
- UnsafeNativeMethods.cs
- Hex.cs
- PathFigureCollection.cs
- ColumnResult.cs
- BooleanAnimationUsingKeyFrames.cs
- ServerIdentity.cs
- FieldNameLookup.cs
- ProtectedConfiguration.cs
- RoleGroup.cs
- AddValidationError.cs
- WsdlImporterElementCollection.cs
- WorkflowOperationBehavior.cs
- XmlCompatibilityReader.cs
- GZipStream.cs
- Material.cs
- EventLogLink.cs
- ToolStripLocationCancelEventArgs.cs
- EditingMode.cs
- TabControlEvent.cs
- WebPartCollection.cs
- elementinformation.cs
- MatrixTransform3D.cs
- ExternalException.cs
- OciLobLocator.cs
- WebEventTraceProvider.cs
- XPathChildIterator.cs
- DirectionalAction.cs
- LoadRetryConstantStrategy.cs
- ItemDragEvent.cs
- CodeTypeDelegate.cs
- SHA1Cng.cs
- CodeBlockBuilder.cs
- RelatedPropertyManager.cs
- ScriptReferenceBase.cs
- SchemaSetCompiler.cs
- TreeNodeStyleCollection.cs
- ZipFileInfo.cs
- DecoratedNameAttribute.cs
- ManagementQuery.cs
- TextBoxBase.cs
- keycontainerpermission.cs
- DataGridViewDataConnection.cs
- MessageBox.cs
- AttributeProviderAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- TimeIntervalCollection.cs
- ActivityExecutor.cs
- XmlSchemaImporter.cs
- ProfileInfo.cs
- EventPrivateKey.cs
- DataSourceDescriptorCollection.cs
- TransformGroup.cs
- AssociatedControlConverter.cs
- IssuerInformation.cs
- GridSplitter.cs
- ComponentCollection.cs
- BorderGapMaskConverter.cs
- InheritanceRules.cs
- ToolStripItemEventArgs.cs
- SyncOperationState.cs
- ThicknessAnimation.cs
- PageHandlerFactory.cs
- RegisteredExpandoAttribute.cs
- ItemCheckEvent.cs
- Image.cs
- WebMessageFormatHelper.cs
- DBParameter.cs
- UntrustedRecipientException.cs
- GacUtil.cs
- BitmapEffectGroup.cs
- DataGridViewRow.cs
- MissingSatelliteAssemblyException.cs
- HighlightComponent.cs
- XmlComment.cs
- ToolboxItemAttribute.cs
- CodeDOMUtility.cs
- PrintPreviewControl.cs
- PolygonHotSpot.cs
- ProxyElement.cs
- DebugManager.cs
- SqlProcedureAttribute.cs
- ComplexTypeEmitter.cs
- FontWeights.cs
- DBConnectionString.cs
- MouseActionValueSerializer.cs
- ListControlBoundActionList.cs
- QilName.cs
- TransactionManager.cs
- MultilineStringConverter.cs
- Image.cs
- TextDataBindingHandler.cs
- VBCodeProvider.cs
- AsyncResult.cs
- ColumnMapProcessor.cs
- OutputCacheProfileCollection.cs
- NetPeerTcpBindingCollectionElement.cs
- DropSourceBehavior.cs
- MergablePropertyAttribute.cs