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
- SmtpCommands.cs
- LoginDesigner.cs
- SystemThemeKey.cs
- AmbiguousMatchException.cs
- WebZone.cs
- ContextConfiguration.cs
- RoleGroup.cs
- Popup.cs
- RunClient.cs
- Scripts.cs
- FontSource.cs
- AtomContentProperty.cs
- HtmlControl.cs
- ListViewDeletedEventArgs.cs
- RegexRunnerFactory.cs
- PropertyGeneratedEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- PolyLineSegment.cs
- DateTimeFormatInfoScanner.cs
- DBSqlParserTableCollection.cs
- RectValueSerializer.cs
- TypedReference.cs
- CollectionCodeDomSerializer.cs
- COM2TypeInfoProcessor.cs
- HttpResponseHeader.cs
- BasicExpressionVisitor.cs
- WindowsListBox.cs
- XmlAnyElementAttributes.cs
- SymbolUsageManager.cs
- ColumnClickEvent.cs
- TrustManagerPromptUI.cs
- WebBrowserUriTypeConverter.cs
- HierarchicalDataBoundControlAdapter.cs
- ExtensionQuery.cs
- ConfigurationValue.cs
- BuildProvider.cs
- FontInfo.cs
- SqlReorderer.cs
- Serializer.cs
- WorkflowTransactionOptions.cs
- ListView.cs
- XsltContext.cs
- TraversalRequest.cs
- SqlTopReducer.cs
- EncodingDataItem.cs
- TextDecoration.cs
- ScriptModule.cs
- DataGridViewUtilities.cs
- TreeNodeCollection.cs
- FontNamesConverter.cs
- ManifestResourceInfo.cs
- CommandDevice.cs
- DriveInfo.cs
- StylusPointCollection.cs
- DropTarget.cs
- FixedFindEngine.cs
- DocumentSequenceHighlightLayer.cs
- UnsafeNativeMethods.cs
- Timer.cs
- TransformGroup.cs
- SiteMapPath.cs
- DigestComparer.cs
- DataBindingHandlerAttribute.cs
- PolicyManager.cs
- MediaElement.cs
- PublisherIdentityPermission.cs
- ProcessHostFactoryHelper.cs
- EasingQuaternionKeyFrame.cs
- AlignmentYValidation.cs
- ProgressBarAutomationPeer.cs
- GeneralTransform3DGroup.cs
- WorkflowInspectionServices.cs
- DataControlImageButton.cs
- NamespaceEmitter.cs
- PEFileReader.cs
- PackWebRequestFactory.cs
- CredentialManagerDialog.cs
- TypeTypeConverter.cs
- SqlParameter.cs
- LineSegment.cs
- CallbackValidatorAttribute.cs
- BitVector32.cs
- XmlNavigatorFilter.cs
- StylusPointProperty.cs
- StyleConverter.cs
- SemaphoreSecurity.cs
- DataConnectionHelper.cs
- SortExpressionBuilder.cs
- externdll.cs
- ClientApiGenerator.cs
- CodeConditionStatement.cs
- ISCIIEncoding.cs
- WriteTimeStream.cs
- DateTime.cs
- BindingMAnagerBase.cs
- SelectionService.cs
- Point3D.cs
- WsdlBuildProvider.cs
- StringUtil.cs
- DataBinding.cs