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
- ReliableMessagingVersion.cs
- XPathScanner.cs
- TextEditorDragDrop.cs
- PropertyIDSet.cs
- Automation.cs
- RegexMatchCollection.cs
- ButtonBaseAdapter.cs
- Clock.cs
- Grid.cs
- StandardToolWindows.cs
- XamlPoint3DCollectionSerializer.cs
- PageTrueTypeFont.cs
- NameService.cs
- TimelineClockCollection.cs
- UnsafeNativeMethods.cs
- TextEndOfLine.cs
- SkinBuilder.cs
- ReliableSessionBindingElementImporter.cs
- UserPreferenceChangedEventArgs.cs
- VirtualDirectoryMapping.cs
- Canvas.cs
- HMAC.cs
- MenuRenderer.cs
- HyperLinkField.cs
- LayoutEvent.cs
- PackageRelationship.cs
- FixedStringLookup.cs
- AdRotatorDesigner.cs
- UndoManager.cs
- DesignerView.cs
- ColorMap.cs
- TrackingParticipant.cs
- IncrementalCompileAnalyzer.cs
- PerformanceCountersElement.cs
- AsyncPostBackTrigger.cs
- DiscoveryServerProtocol.cs
- WebControlsSection.cs
- EmptyQuery.cs
- sqlpipe.cs
- KoreanCalendar.cs
- EFColumnProvider.cs
- DeviceContext2.cs
- PersonalizableAttribute.cs
- Rotation3DKeyFrameCollection.cs
- _AutoWebProxyScriptHelper.cs
- TypeBuilderInstantiation.cs
- BrowserInteropHelper.cs
- FieldNameLookup.cs
- IUnknownConstantAttribute.cs
- WindowsListBox.cs
- DateRangeEvent.cs
- FilterableData.cs
- SourceFileBuildProvider.cs
- WebBrowserHelper.cs
- CorrelationHandle.cs
- HtmlInputText.cs
- InputElement.cs
- HTMLTagNameToTypeMapper.cs
- DbConnectionClosed.cs
- RightsManagementEncryptionTransform.cs
- RepeatBehavior.cs
- RuntimeConfigLKG.cs
- AffineTransform3D.cs
- XmlSchemaImporter.cs
- CloseCryptoHandleRequest.cs
- PagesSection.cs
- ControlBuilderAttribute.cs
- CreateUserWizardStep.cs
- RegistryConfigurationProvider.cs
- DataSourceConverter.cs
- FunctionCommandText.cs
- ChangeProcessor.cs
- IChannel.cs
- CachedRequestParams.cs
- DesignerContextDescriptor.cs
- VisualBasicImportReference.cs
- SingleAnimationBase.cs
- CopyNamespacesAction.cs
- SelectedDatesCollection.cs
- XsltConvert.cs
- CustomErrorsSection.cs
- HttpProtocolReflector.cs
- PenThreadPool.cs
- WebPartZone.cs
- DataGridViewSelectedColumnCollection.cs
- RectAnimationBase.cs
- EnumDataContract.cs
- RenderContext.cs
- WebPartAuthorizationEventArgs.cs
- SoapIgnoreAttribute.cs
- ListViewDeletedEventArgs.cs
- CollectionConverter.cs
- ChangeNode.cs
- HostingEnvironmentSection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DbDataAdapter.cs
- Int16AnimationUsingKeyFrames.cs
- QueryTreeBuilder.cs
- ClassHandlersStore.cs
- XmlSchemaAnnotated.cs