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
- VersionPair.cs
- GeneratedView.cs
- XmlSigningNodeWriter.cs
- QueryStringConverter.cs
- MultiSelectRootGridEntry.cs
- WhereQueryOperator.cs
- DrawItemEvent.cs
- StylusDevice.cs
- AccessDataSource.cs
- CompilationSection.cs
- OuterGlowBitmapEffect.cs
- DbConnectionPoolIdentity.cs
- ExpressionValueEditor.cs
- CatalogZoneBase.cs
- InternalConfigConfigurationFactory.cs
- BaseHashHelper.cs
- HotCommands.cs
- TypeCacheManager.cs
- HttpStreamXmlDictionaryReader.cs
- SqlUdtInfo.cs
- FileDetails.cs
- PDBReader.cs
- TemplateField.cs
- StrokeIntersection.cs
- TableLayoutSettings.cs
- RedistVersionInfo.cs
- WebPartConnectionsCloseVerb.cs
- XmlJsonWriter.cs
- WindowsSecurityTokenAuthenticator.cs
- CalendarBlackoutDatesCollection.cs
- PropertyFilter.cs
- TdsParserStaticMethods.cs
- FunctionCommandText.cs
- KeyValueInternalCollection.cs
- VariantWrapper.cs
- COM2Properties.cs
- DocumentXmlWriter.cs
- MsdtcWrapper.cs
- VirtualPathProvider.cs
- XmlSerializerSection.cs
- ClientTarget.cs
- WinFormsSpinner.cs
- DomainUpDown.cs
- ImageBrush.cs
- AsyncDataRequest.cs
- DataGridPreparingCellForEditEventArgs.cs
- Variant.cs
- UnmanagedBitmapWrapper.cs
- EFDataModelProvider.cs
- RemotingSurrogateSelector.cs
- HttpCookieCollection.cs
- CodeDefaultValueExpression.cs
- FontNameConverter.cs
- CqlLexer.cs
- ScriptReferenceBase.cs
- WizardDesigner.cs
- DurationConverter.cs
- ScriptManagerProxy.cs
- SafeEventLogReadHandle.cs
- FederatedMessageSecurityOverHttp.cs
- MoveSizeWinEventHandler.cs
- DataControlFieldCollection.cs
- UshortList2.cs
- CollectionChangedEventManager.cs
- BufferModesCollection.cs
- CompositeScriptReferenceEventArgs.cs
- HttpRuntimeSection.cs
- OracleCommandBuilder.cs
- DataStorage.cs
- precedingquery.cs
- Header.cs
- BookmarkScopeInfo.cs
- DataBoundControl.cs
- TemplateControl.cs
- System.Data_BID.cs
- MULTI_QI.cs
- ScalarConstant.cs
- ReadOnlyDataSourceView.cs
- XPathException.cs
- HttpWriter.cs
- ComboBox.cs
- ToolStripPanel.cs
- ExpressionNode.cs
- EmbeddedMailObjectsCollection.cs
- QueryContext.cs
- CustomErrorsSection.cs
- HttpListenerRequest.cs
- MultiSelectRootGridEntry.cs
- DateTimeFormatInfoScanner.cs
- DataConnectionHelper.cs
- SmiTypedGetterSetter.cs
- HttpModuleAction.cs
- SimpleHandlerBuildProvider.cs
- SiteMapNodeItemEventArgs.cs
- SaveWorkflowAsyncResult.cs
- SelectManyQueryOperator.cs
- ConfigurationStrings.cs
- DPAPIProtectedConfigurationProvider.cs
- TextEditorMouse.cs
- InstanceBehavior.cs