Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectInput.cs / 1305600 / 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
- RenderingBiasValidation.cs
- CultureMapper.cs
- Tokenizer.cs
- SiteMapPath.cs
- MenuItem.cs
- SQLBytes.cs
- Exceptions.cs
- RunInstallerAttribute.cs
- TextFormatterContext.cs
- ActiveDocumentEvent.cs
- SettingsPropertyCollection.cs
- FileResponseElement.cs
- ObjectDataSourceSelectingEventArgs.cs
- WmlLinkAdapter.cs
- OpenTypeLayoutCache.cs
- ConnectionPoint.cs
- DefaultParameterValueAttribute.cs
- Int32EqualityComparer.cs
- PiiTraceSource.cs
- RowBinding.cs
- FixedSOMGroup.cs
- FragmentQuery.cs
- SqlDelegatedTransaction.cs
- ClickablePoint.cs
- EdmError.cs
- DataSetMappper.cs
- ListView.cs
- DataTableReader.cs
- ScrollBar.cs
- SpAudioStreamWrapper.cs
- XmlSchemaAnnotated.cs
- IDictionary.cs
- DataBoundControlHelper.cs
- wgx_render.cs
- CustomCredentialPolicy.cs
- GraphicsPathIterator.cs
- Int32CollectionValueSerializer.cs
- FixedLineResult.cs
- XmlSchemaDocumentation.cs
- SourceFileInfo.cs
- TypedTableHandler.cs
- SessionPageStateSection.cs
- PolicyManager.cs
- SQLInt32.cs
- PropertyEmitter.cs
- TagPrefixAttribute.cs
- AutomationProperties.cs
- ApplicationActivator.cs
- NetworkInterface.cs
- MessageQueuePermissionAttribute.cs
- SliderAutomationPeer.cs
- SchemaTypeEmitter.cs
- FieldNameLookup.cs
- CodeDOMProvider.cs
- GeometryDrawing.cs
- TextEditorSelection.cs
- StrokeNodeEnumerator.cs
- FramingDecoders.cs
- ToolStripPanelRenderEventArgs.cs
- FactorySettingsElement.cs
- RsaSecurityTokenAuthenticator.cs
- BackStopAuthenticationModule.cs
- ParameterCollection.cs
- ThemeDirectoryCompiler.cs
- _NegoState.cs
- SizeChangedInfo.cs
- LinqDataSourceContextEventArgs.cs
- Floater.cs
- ResourceBinder.cs
- DesignTimeVisibleAttribute.cs
- FileDataSourceCache.cs
- XslUrlEditor.cs
- DataGridViewAccessibleObject.cs
- DataGridHeaderBorder.cs
- DataGridViewCellPaintingEventArgs.cs
- CommandTreeTypeHelper.cs
- BoundColumn.cs
- ProxyManager.cs
- XmlObjectSerializerReadContext.cs
- JpegBitmapEncoder.cs
- StorageModelBuildProvider.cs
- NativeRecognizer.cs
- DataControlCommands.cs
- ToolboxComponentsCreatingEventArgs.cs
- DBCommandBuilder.cs
- WebPartVerb.cs
- EntityDesignerUtils.cs
- Repeater.cs
- SR.cs
- ScrollEvent.cs
- CorrelationTokenInvalidatedHandler.cs
- InheritanceContextHelper.cs
- Parameter.cs
- DocumentSequence.cs
- AutoCompleteStringCollection.cs
- DataReceivedEventArgs.cs
- InternalConfigHost.cs
- KeyTimeConverter.cs
- ZipIOExtraField.cs
- SEHException.cs