Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LocatorGroup.cs
- DataGridPreparingCellForEditEventArgs.cs
- Label.cs
- SqlErrorCollection.cs
- TextEndOfParagraph.cs
- DataServiceRequest.cs
- UpdatableGenericsFeature.cs
- InplaceBitmapMetadataWriter.cs
- ScrollEvent.cs
- MenuItem.cs
- ValueType.cs
- DeferrableContent.cs
- MemberAccessException.cs
- CategoryState.cs
- ObjectContext.cs
- BitmapEffect.cs
- Int32CAMarshaler.cs
- SqlDataSourceCommandEventArgs.cs
- MappingModelBuildProvider.cs
- WindowsEditBox.cs
- ObjectList.cs
- HtmlInputImage.cs
- WorkflowApplicationIdleEventArgs.cs
- InkCollectionBehavior.cs
- WindowsIdentity.cs
- Calendar.cs
- CodeMemberEvent.cs
- InfoCardSymmetricCrypto.cs
- RequiredArgumentAttribute.cs
- RequestStatusBarUpdateEventArgs.cs
- WeakReferenceEnumerator.cs
- Screen.cs
- CreateUserWizard.cs
- WebPartEditorCancelVerb.cs
- DbParameterCollectionHelper.cs
- MessagePartDescription.cs
- DbProviderFactory.cs
- ListBoxAutomationPeer.cs
- DataRecordInfo.cs
- DataGridViewLayoutData.cs
- Int16.cs
- HtmlFormWrapper.cs
- SQLGuidStorage.cs
- AdornerDecorator.cs
- DefaultEventAttribute.cs
- IndentTextWriter.cs
- DataList.cs
- XmlDocumentSchema.cs
- DocumentXPathNavigator.cs
- SqlDataSourceQueryConverter.cs
- input.cs
- XamlTreeBuilder.cs
- SQLBytesStorage.cs
- LOSFormatter.cs
- HwndSourceKeyboardInputSite.cs
- ThreadAbortException.cs
- EmptyCollection.cs
- TraceContext.cs
- ComPlusThreadInitializer.cs
- StateElementCollection.cs
- NativeMethods.cs
- HorizontalAlignConverter.cs
- InProcStateClientManager.cs
- OracleCommand.cs
- webbrowsersite.cs
- UndoEngine.cs
- BindingGroup.cs
- PropertyChangedEventArgs.cs
- PropertyInformation.cs
- IPipelineRuntime.cs
- ListViewCommandEventArgs.cs
- PromptEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- DocumentViewerHelper.cs
- SiteIdentityPermission.cs
- _AutoWebProxyScriptEngine.cs
- ListDictionaryInternal.cs
- BitmapCodecInfo.cs
- QueryGeneratorBase.cs
- EmbeddedMailObjectsCollection.cs
- NotificationContext.cs
- ClientApiGenerator.cs
- ThumbAutomationPeer.cs
- ServicePointManagerElement.cs
- OutputScopeManager.cs
- MostlySingletonList.cs
- BaseResourcesBuildProvider.cs
- ListSourceHelper.cs
- FileLoadException.cs
- SqlConnectionManager.cs
- ProcessHostServerConfig.cs
- MouseEvent.cs
- StylusPointDescription.cs
- ScopelessEnumAttribute.cs
- TPLETWProvider.cs
- RuntimeArgumentHandle.cs
- HyperlinkAutomationPeer.cs
- LabelLiteral.cs
- TextParagraph.cs
- TemplateBamlRecordReader.cs