Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TextHidden.cs
- AudioFileOut.cs
- DropTarget.cs
- COM2ExtendedBrowsingHandler.cs
- CallSiteHelpers.cs
- IndexedString.cs
- AlphabeticalEnumConverter.cs
- AppDomainAttributes.cs
- WmlFormAdapter.cs
- DataGridColumn.cs
- DataGridState.cs
- ByeMessage11.cs
- WindowsBrush.cs
- DocumentXmlWriter.cs
- DataRowComparer.cs
- CodeAttributeDeclarationCollection.cs
- DataGridViewHeaderCell.cs
- InheritanceContextHelper.cs
- NullableDoubleSumAggregationOperator.cs
- OracleDataReader.cs
- NamespaceCollection.cs
- EntityFrameworkVersions.cs
- OutputCacheModule.cs
- FileLevelControlBuilderAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- Speller.cs
- DesignerSerializationOptionsAttribute.cs
- SecurityTokenValidationException.cs
- HebrewNumber.cs
- TypeUtils.cs
- RichTextBoxConstants.cs
- ClientRolePrincipal.cs
- Converter.cs
- METAHEADER.cs
- ScrollData.cs
- Helper.cs
- GiveFeedbackEventArgs.cs
- DbProviderManifest.cs
- StorageEndPropertyMapping.cs
- MessageSecurityOverHttp.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- HostingEnvironmentException.cs
- SocketPermission.cs
- DesignerHelpers.cs
- TranslateTransform.cs
- CompositeDataBoundControl.cs
- Schema.cs
- DataControlButton.cs
- SectionUpdates.cs
- GroupDescription.cs
- TextFormattingConverter.cs
- SqlUdtInfo.cs
- LinqDataSourceHelper.cs
- Misc.cs
- DataBoundControlParameterTarget.cs
- WindowsProgressbar.cs
- Label.cs
- SmiMetaDataProperty.cs
- CodeExporter.cs
- PackageStore.cs
- ChannelManager.cs
- TypedServiceOperationListItem.cs
- SoapReflectionImporter.cs
- StagingAreaInputItem.cs
- SourceSwitch.cs
- InvokeWebServiceDesigner.cs
- ProviderCollection.cs
- CodeCastExpression.cs
- ECDiffieHellman.cs
- EventMap.cs
- SpeechEvent.cs
- PreviewKeyDownEventArgs.cs
- CodeSubDirectory.cs
- Int16.cs
- QueryContinueDragEvent.cs
- RectIndependentAnimationStorage.cs
- IDQuery.cs
- CodeGroup.cs
- OptimalBreakSession.cs
- SubordinateTransaction.cs
- Propagator.JoinPropagator.cs
- InputProcessorProfiles.cs
- SqlBulkCopyColumnMappingCollection.cs
- ZipIOExtraFieldElement.cs
- ToolBarButtonClickEvent.cs
- ClonableStack.cs
- TextStore.cs
- PresentationAppDomainManager.cs
- HttpCookie.cs
- WebPartEventArgs.cs
- recordstatefactory.cs
- Metadata.cs
- SystemResourceHost.cs
- HtmlPageAdapter.cs
- AnnotationAuthorChangedEventArgs.cs
- InvalidAsynchronousStateException.cs
- FaultPropagationQuery.cs
- StaticExtensionConverter.cs
- DefaultTextStore.cs
- DataSourceSelectArguments.cs