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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigPathUtility.cs
- WizardStepBase.cs
- ObjectDataSourceMethodEventArgs.cs
- TableParaClient.cs
- NamedPipeConnectionPool.cs
- storepermissionattribute.cs
- PrimitiveSchema.cs
- ButtonField.cs
- CheckBoxFlatAdapter.cs
- ResizeGrip.cs
- WinEventHandler.cs
- Point3DValueSerializer.cs
- URLMembershipCondition.cs
- Location.cs
- ObsoleteAttribute.cs
- DataSysAttribute.cs
- GradientSpreadMethodValidation.cs
- SmiEventSink.cs
- RegexGroupCollection.cs
- PageParserFilter.cs
- ProvidersHelper.cs
- ValidationEventArgs.cs
- TransactionScope.cs
- XmlRootAttribute.cs
- SizeChangedEventArgs.cs
- ThrowHelper.cs
- FileDialogCustomPlace.cs
- UInt64.cs
- IInstanceTable.cs
- SubclassTypeValidator.cs
- XmlSchemas.cs
- NetCodeGroup.cs
- XLinq.cs
- DragEventArgs.cs
- MissingFieldException.cs
- Util.cs
- ApplicationException.cs
- CodeMemberProperty.cs
- CompiledQueryCacheEntry.cs
- TagPrefixAttribute.cs
- RootProfilePropertySettingsCollection.cs
- NumberAction.cs
- ConfigurationPermission.cs
- InvalidAsynchronousStateException.cs
- XmlBinaryReaderSession.cs
- TraceContextEventArgs.cs
- DataColumnPropertyDescriptor.cs
- DeviceFilterDictionary.cs
- ObjectMemberMapping.cs
- WebPartTransformerAttribute.cs
- PriorityItem.cs
- InternalBase.cs
- EdmItemError.cs
- ComponentCache.cs
- UpdateCommand.cs
- UpdateTranslator.cs
- BidOverLoads.cs
- Shape.cs
- EntityCommandExecutionException.cs
- TypeLoadException.cs
- ExceptionHandlersDesigner.cs
- DebugControllerThread.cs
- QueryPageSettingsEventArgs.cs
- PeerNeighborManager.cs
- KeyPullup.cs
- ItemPager.cs
- SynchronizationScope.cs
- PropVariant.cs
- DataGridViewAdvancedBorderStyle.cs
- SerTrace.cs
- QuaternionAnimationBase.cs
- WebPartUtil.cs
- webeventbuffer.cs
- PropertiesTab.cs
- SqlServices.cs
- TrackBarRenderer.cs
- __Error.cs
- UriExt.cs
- DataGridViewSelectedColumnCollection.cs
- HMACMD5.cs
- ValueChangedEventManager.cs
- ConfigurationLockCollection.cs
- ServicesUtilities.cs
- WorkflowFormatterBehavior.cs
- CriticalHandle.cs
- XmlNotation.cs
- Directory.cs
- Manipulation.cs
- ServiceEndpointCollection.cs
- _ListenerAsyncResult.cs
- ValidationErrorEventArgs.cs
- SetterBaseCollection.cs
- ManifestSignedXml.cs
- FaultImportOptions.cs
- Rfc2898DeriveBytes.cs
- DataGridViewColumnConverter.cs
- HttpConfigurationSystem.cs
- Win32.cs
- ZipIOExtraFieldElement.cs
- InputMethod.cs