Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MD5HashHelper.cs
- parserscommon.cs
- DataErrorValidationRule.cs
- SettingsPropertyCollection.cs
- SQLSingle.cs
- IBuiltInEvidence.cs
- RowToFieldTransformer.cs
- Identity.cs
- SetIterators.cs
- MsmqInputChannelBase.cs
- PerformanceCounterPermissionAttribute.cs
- SolidColorBrush.cs
- SchemaAttDef.cs
- MobileListItem.cs
- SchemaCollectionPreprocessor.cs
- Classification.cs
- CatalogZoneBase.cs
- HttpModuleAction.cs
- UInt32.cs
- Point4DConverter.cs
- XamlVector3DCollectionSerializer.cs
- FormViewModeEventArgs.cs
- AnimationClockResource.cs
- ManualResetEvent.cs
- HTMLTextWriter.cs
- GenericIdentity.cs
- TrackingStringDictionary.cs
- ChangePasswordDesigner.cs
- CommunicationException.cs
- LexicalChunk.cs
- ProfileEventArgs.cs
- InputLangChangeRequestEvent.cs
- MediaTimeline.cs
- CAGDesigner.cs
- OciLobLocator.cs
- HostingEnvironmentSection.cs
- ListBindableAttribute.cs
- GeneratedContractType.cs
- TypeHelpers.cs
- DiscreteKeyFrames.cs
- DllNotFoundException.cs
- InlinedLocationReference.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BasicExpressionVisitor.cs
- ToolboxDataAttribute.cs
- SecurityTokenProvider.cs
- BufferedGraphics.cs
- SafeBitVector32.cs
- SchemaConstraints.cs
- OleDbReferenceCollection.cs
- CallInfo.cs
- shaper.cs
- HttpProfileGroupBase.cs
- Cell.cs
- ConfigurationManagerInternalFactory.cs
- CustomAttributeBuilder.cs
- InfoCardPolicy.cs
- LinkConverter.cs
- ServiceNotStartedException.cs
- WinFormsSpinner.cs
- CodeIdentifier.cs
- XmlDataImplementation.cs
- ConsoleCancelEventArgs.cs
- ChangeTracker.cs
- EntitySqlQueryCacheEntry.cs
- TablePatternIdentifiers.cs
- ApplicationSecurityInfo.cs
- StructureChangedEventArgs.cs
- SharedStatics.cs
- FormViewPagerRow.cs
- BinaryHeap.cs
- PaperSource.cs
- AutoResizedEvent.cs
- ListViewEditEventArgs.cs
- CodeIdentifier.cs
- EventlogProvider.cs
- XmlAttribute.cs
- StylusPlugInCollection.cs
- HwndMouseInputProvider.cs
- NameScopePropertyAttribute.cs
- SQLMoneyStorage.cs
- WebCategoryAttribute.cs
- EdmSchemaError.cs
- _ListenerRequestStream.cs
- ObjectDisposedException.cs
- StringReader.cs
- PageThemeBuildProvider.cs
- TcpTransportSecurity.cs
- EventRecord.cs
- StylusPointDescription.cs
- AstTree.cs
- EpmTargetPathSegment.cs
- FrameAutomationPeer.cs
- RectangleGeometry.cs
- CodeTypeParameter.cs
- ProcessThreadCollection.cs
- Content.cs
- ValidationResult.cs
- PathFigureCollection.cs
- ParentUndoUnit.cs