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
- MessagingDescriptionAttribute.cs
- isolationinterop.cs
- PersonalizationStateQuery.cs
- ImageSourceValueSerializer.cs
- System.Data_BID.cs
- ElementHost.cs
- Rule.cs
- SelectionEditingBehavior.cs
- UrlSyndicationContent.cs
- ConnectionManagementElement.cs
- DateTimeConstantAttribute.cs
- TrueReadOnlyCollection.cs
- QueryContinueDragEventArgs.cs
- DigestComparer.cs
- EdmScalarPropertyAttribute.cs
- HtmlInputHidden.cs
- ScrollChrome.cs
- SystemColorTracker.cs
- StickyNoteHelper.cs
- login.cs
- PixelFormatConverter.cs
- GuidelineSet.cs
- SoapAttributeOverrides.cs
- Menu.cs
- AudioDeviceOut.cs
- DynamicObjectAccessor.cs
- CompModSwitches.cs
- BypassElementCollection.cs
- HandleCollector.cs
- MailWebEventProvider.cs
- DelayLoadType.cs
- CatchBlock.cs
- ActivityContext.cs
- CAGDesigner.cs
- WebColorConverter.cs
- DataView.cs
- UriWriter.cs
- SrgsOneOf.cs
- AncestorChangedEventArgs.cs
- TemplateNameScope.cs
- HandleRef.cs
- DefaultTextStore.cs
- SchemaImporterExtensionElement.cs
- Rules.cs
- ListenerConstants.cs
- DataServiceResponse.cs
- Win32KeyboardDevice.cs
- InkCanvasFeedbackAdorner.cs
- _CacheStreams.cs
- ReflectionTypeLoadException.cs
- DBCommandBuilder.cs
- ConcurrentBag.cs
- UInt32Storage.cs
- InlineCollection.cs
- KnownTypeDataContractResolver.cs
- CheckBoxPopupAdapter.cs
- controlskin.cs
- FilterException.cs
- AvTrace.cs
- Binding.cs
- _ChunkParse.cs
- CharacterShapingProperties.cs
- InkCanvasSelectionAdorner.cs
- SafeRegistryHandle.cs
- storepermission.cs
- SchemaSetCompiler.cs
- ArglessEventHandlerProxy.cs
- XmlParserContext.cs
- ConsoleKeyInfo.cs
- FixedTextBuilder.cs
- ReflectionServiceProvider.cs
- EntitySetBaseCollection.cs
- ByteRangeDownloader.cs
- RotateTransform.cs
- WindowsScrollBar.cs
- RtfToXamlLexer.cs
- Action.cs
- RowParagraph.cs
- TextRunProperties.cs
- WebConfigurationHost.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- UnmanagedMemoryAccessor.cs
- mediapermission.cs
- mactripleDES.cs
- TranslateTransform.cs
- KoreanLunisolarCalendar.cs
- ButtonField.cs
- InputChannelAcceptor.cs
- LayoutDump.cs
- QueryExpr.cs
- Assert.cs
- StringBuilder.cs
- WebResourceAttribute.cs
- CommandHelpers.cs
- PathSegment.cs
- DesignSurfaceManager.cs
- ChtmlCalendarAdapter.cs
- SafeRegistryHandle.cs
- LockedAssemblyCache.cs
- CellConstantDomain.cs