Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ObjectViewEntityCollectionData.cs
- EntityConnectionStringBuilder.cs
- Normalizer.cs
- PreProcessor.cs
- Roles.cs
- entitydatasourceentitysetnameconverter.cs
- StylusOverProperty.cs
- FixedDocument.cs
- DetailsViewInsertEventArgs.cs
- SQLInt32Storage.cs
- MetabaseReader.cs
- XPathSingletonIterator.cs
- AdRotatorDesigner.cs
- WindowsRichEditRange.cs
- HttpRuntime.cs
- ImportContext.cs
- ManagedIStream.cs
- DataTrigger.cs
- DataGridViewImageColumn.cs
- cookie.cs
- EntityDataSourceWrapperCollection.cs
- FieldBuilder.cs
- ParameterBuilder.cs
- UndoManager.cs
- HttpResponseInternalBase.cs
- RoutedUICommand.cs
- CategoryAttribute.cs
- NameValueConfigurationCollection.cs
- NameScopePropertyAttribute.cs
- ProfileSettings.cs
- CompositeDuplexBindingElement.cs
- EntityClassGenerator.cs
- QEncodedStream.cs
- Exception.cs
- CalendarDay.cs
- WindowsTooltip.cs
- VirtualPathProvider.cs
- WebReferencesBuildProvider.cs
- DrawingImage.cs
- TextEndOfParagraph.cs
- BuildResult.cs
- StructureChangedEventArgs.cs
- AsymmetricAlgorithm.cs
- Parallel.cs
- InternalBase.cs
- securestring.cs
- LicenseManager.cs
- NetworkAddressChange.cs
- WeakHashtable.cs
- SplineQuaternionKeyFrame.cs
- Point3DCollectionConverter.cs
- LogManagementAsyncResult.cs
- ServicePointManagerElement.cs
- CommandTreeTypeHelper.cs
- SHA1Managed.cs
- ArcSegment.cs
- GeneratedCodeAttribute.cs
- ObjectItemNoOpAssemblyLoader.cs
- PartitionResolver.cs
- ResolveCriteria11.cs
- TextFormatterHost.cs
- ConstraintConverter.cs
- TypeUtil.cs
- XmlSchemaElement.cs
- AutoResetEvent.cs
- IconConverter.cs
- RadioButtonList.cs
- MenuCommands.cs
- RuntimeHandles.cs
- StringInfo.cs
- DataGridCommandEventArgs.cs
- DesignerPerfEventProvider.cs
- BitmapEffectGroup.cs
- UnknownWrapper.cs
- StringValueSerializer.cs
- Rotation3DAnimation.cs
- HttpCachePolicyElement.cs
- KnownTypesProvider.cs
- TypeExtensionConverter.cs
- ObjectListComponentEditor.cs
- TraceInternal.cs
- CheckPair.cs
- HttpClientProtocol.cs
- ZoomingMessageFilter.cs
- PcmConverter.cs
- SecurityToken.cs
- VarRefManager.cs
- JapaneseCalendar.cs
- ZoneLinkButton.cs
- OdbcError.cs
- BlobPersonalizationState.cs
- Icon.cs
- DbConnectionPoolOptions.cs
- HttpModuleActionCollection.cs
- StreamGeometryContext.cs
- DataGridCheckBoxColumn.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Socket.cs
- mediaeventargs.cs
- WindowsScroll.cs