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
- TextProviderWrapper.cs
- UnsafeMethods.cs
- HelpExampleGenerator.cs
- SQLInt16.cs
- sqlser.cs
- Pts.cs
- ReferencedAssembly.cs
- OracleBFile.cs
- HyperLinkField.cs
- TextChange.cs
- ModelItemCollectionImpl.cs
- EmptyControlCollection.cs
- TemplateManager.cs
- DataGridViewLayoutData.cs
- KeyBinding.cs
- Point.cs
- SQLBinary.cs
- securitycriticaldataformultiplegetandset.cs
- XmlSchemaObjectTable.cs
- CheckBox.cs
- HashCoreRequest.cs
- EmptyQuery.cs
- SignatureDescription.cs
- SmiEventSink_DeferedProcessing.cs
- MenuEventArgs.cs
- MSAAEventDispatcher.cs
- GridLength.cs
- CodeObjectCreateExpression.cs
- FileStream.cs
- DependencyObjectType.cs
- Label.cs
- TTSEvent.cs
- VirtualizedItemPattern.cs
- TimeSpanConverter.cs
- TcpTransportSecurityElement.cs
- DataGridHyperlinkColumn.cs
- ImageCodecInfoPrivate.cs
- NoneExcludedImageIndexConverter.cs
- StrongName.cs
- TextBoxLine.cs
- GenericParameterDataContract.cs
- DataGridViewCellFormattingEventArgs.cs
- VectorValueSerializer.cs
- OleDbSchemaGuid.cs
- EmissiveMaterial.cs
- XmlDataDocument.cs
- TypeBuilderInstantiation.cs
- ResourceDisplayNameAttribute.cs
- GACIdentityPermission.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ParallelTimeline.cs
- WizardPanelChangingEventArgs.cs
- TCPClient.cs
- MessageLoggingFilterTraceRecord.cs
- OrderPreservingMergeHelper.cs
- ReceiveContent.cs
- ClientBuildManager.cs
- Identity.cs
- ColumnBinding.cs
- InputReportEventArgs.cs
- NetworkInformationException.cs
- ObjectSet.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlSiteMapProvider.cs
- OleCmdHelper.cs
- _NegoState.cs
- RemotingClientProxy.cs
- Debugger.cs
- DesignerActionHeaderItem.cs
- CacheAxisQuery.cs
- ContainerTracking.cs
- DesignSurfaceServiceContainer.cs
- BooleanFacetDescriptionElement.cs
- CodeArrayCreateExpression.cs
- ReadOnlyDictionary.cs
- ExpressionUtilities.cs
- BooleanToVisibilityConverter.cs
- MethodCallConverter.cs
- PointAnimationUsingKeyFrames.cs
- NamespaceQuery.cs
- ApplyTemplatesAction.cs
- ProfileGroupSettingsCollection.cs
- GetRecipientRequest.cs
- DoWhile.cs
- CallSite.cs
- WsdlImporter.cs
- EmptyImpersonationContext.cs
- Matrix3DValueSerializer.cs
- CacheAxisQuery.cs
- Types.cs
- xmlglyphRunInfo.cs
- SafeThemeHandle.cs
- RawMouseInputReport.cs
- X509SecurityTokenAuthenticator.cs
- CodeTypeDeclaration.cs
- InputElement.cs
- InternalConfigHost.cs
- ScrollChangedEventArgs.cs
- CheckBoxRenderer.cs
- ScriptBehaviorDescriptor.cs