Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QueryAsyncResult.cs
- ContentTextAutomationPeer.cs
- JsonFormatWriterGenerator.cs
- ExpandableObjectConverter.cs
- PerformanceCounterPermissionEntry.cs
- Propagator.Evaluator.cs
- BufferedOutputAsyncStream.cs
- WSUtilitySpecificationVersion.cs
- NavigationFailedEventArgs.cs
- PropertyPathWorker.cs
- UnsafeNativeMethods.cs
- EventProviderWriter.cs
- ViewgenContext.cs
- SHA384Managed.cs
- controlskin.cs
- DataControlFieldCollection.cs
- GridViewSelectEventArgs.cs
- KnownTypesProvider.cs
- CapabilitiesRule.cs
- UnsafeMethods.cs
- BitmapEffectDrawing.cs
- SelectionRangeConverter.cs
- TraceLog.cs
- Expression.cs
- PropertyItemInternal.cs
- BrushMappingModeValidation.cs
- Pair.cs
- ChooseAction.cs
- basevalidator.cs
- ListenerConstants.cs
- BindingNavigatorDesigner.cs
- GeometryValueSerializer.cs
- WorkflowInstance.cs
- QueryableFilterRepeater.cs
- cookieexception.cs
- TextComposition.cs
- RawMouseInputReport.cs
- PropertyItem.cs
- MatrixIndependentAnimationStorage.cs
- AssemblyFilter.cs
- XmlSignificantWhitespace.cs
- AnnotationService.cs
- XmlDataDocument.cs
- ExpandedProjectionNode.cs
- SchemaAttDef.cs
- WebConfigurationFileMap.cs
- DataControlFieldHeaderCell.cs
- ConnectionInterfaceCollection.cs
- MissingManifestResourceException.cs
- SmiSettersStream.cs
- infer.cs
- WinFormsComponentEditor.cs
- ServiceOperationListItemList.cs
- DataColumnCollection.cs
- PenThread.cs
- Size3D.cs
- TableStyle.cs
- LowerCaseStringConverter.cs
- SerializerWriterEventHandlers.cs
- ToolStripComboBox.cs
- ObjectSecurity.cs
- ClaimTypeRequirement.cs
- _FtpControlStream.cs
- ExpanderAutomationPeer.cs
- SecurityState.cs
- TaskHelper.cs
- AspCompat.cs
- StringFunctions.cs
- RuntimeIdentifierPropertyAttribute.cs
- SimpleApplicationHost.cs
- SqlCacheDependency.cs
- InputScopeAttribute.cs
- ProjectionCamera.cs
- DataGridParentRows.cs
- MsmqIntegrationProcessProtocolHandler.cs
- SpecularMaterial.cs
- DataSetUtil.cs
- XsltContext.cs
- Pen.cs
- TextCharacters.cs
- TextElementEnumerator.cs
- GridViewDeletedEventArgs.cs
- BigInt.cs
- SchemaImporter.cs
- LoginName.cs
- ProfileSettingsCollection.cs
- DataGridParentRows.cs
- SelectionPatternIdentifiers.cs
- cache.cs
- ClearTypeHintValidation.cs
- StrokeRenderer.cs
- MatchAllMessageFilter.cs
- UrlMappingsSection.cs
- PaginationProgressEventArgs.cs
- ObjectIDGenerator.cs
- CacheDependency.cs
- OdbcInfoMessageEvent.cs
- HwndSource.cs
- InstanceValue.cs
- AssemblyHash.cs