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
- RelativeSource.cs
- MemberRelationshipService.cs
- PeerCollaboration.cs
- MsmqIntegrationValidationBehavior.cs
- EventBuilder.cs
- EncoderBestFitFallback.cs
- ProcessHost.cs
- DrawToolTipEventArgs.cs
- DocumentSchemaValidator.cs
- SerializableReadOnlyDictionary.cs
- ProxyRpc.cs
- ToolStripDropDownClosedEventArgs.cs
- AmbientLight.cs
- ObjectView.cs
- TTSEngineTypes.cs
- DBCommand.cs
- wmiprovider.cs
- SocketAddress.cs
- ClientFormsIdentity.cs
- StaticTextPointer.cs
- StorageComplexPropertyMapping.cs
- AtomMaterializerLog.cs
- TargetException.cs
- PackageStore.cs
- BrowserCapabilitiesFactoryBase.cs
- GatewayDefinition.cs
- CollectionBase.cs
- RecognitionEventArgs.cs
- RightsManagementProvider.cs
- DesignTimeParseData.cs
- ExceptionUtil.cs
- UnsafeNetInfoNativeMethods.cs
- IsolationInterop.cs
- ThreadStateException.cs
- ReaderContextStackData.cs
- HttpApplication.cs
- processwaithandle.cs
- TrackingProfileSerializer.cs
- RevocationPoint.cs
- TextServicesLoader.cs
- SctClaimDictionary.cs
- AttributeCollection.cs
- StringExpressionSet.cs
- AssertFilter.cs
- MultiView.cs
- _DisconnectOverlappedAsyncResult.cs
- EmptyReadOnlyDictionaryInternal.cs
- StructuredTypeEmitter.cs
- MailDefinition.cs
- WarningException.cs
- DefaultExpressionVisitor.cs
- CodeAccessPermission.cs
- IssuanceLicense.cs
- CodeTypeDeclarationCollection.cs
- GridViewRowEventArgs.cs
- TextParagraphCache.cs
- ChainedAsyncResult.cs
- SynchronizationScope.cs
- SecurityTokenRequirement.cs
- FirstMatchCodeGroup.cs
- ClientConfigurationHost.cs
- MatrixCamera.cs
- RoleGroupCollection.cs
- VersionedStreamOwner.cs
- Journaling.cs
- DesignerWidgets.cs
- DocumentPageViewAutomationPeer.cs
- WebPartManagerInternals.cs
- OleDbMetaDataFactory.cs
- SliderAutomationPeer.cs
- WebPartConnectionsCloseVerb.cs
- BulletChrome.cs
- DetailsViewRow.cs
- QilReference.cs
- WhitespaceSignificantCollectionAttribute.cs
- MergeExecutor.cs
- FixUp.cs
- XmlLangPropertyAttribute.cs
- ReadOnlyNameValueCollection.cs
- FrameworkRichTextComposition.cs
- AxisAngleRotation3D.cs
- WebWorkflowRole.cs
- ViewLoader.cs
- SettingsPropertyWrongTypeException.cs
- TripleDESCryptoServiceProvider.cs
- ProcessInfo.cs
- EntityKeyElement.cs
- VisualBasicHelper.cs
- ViewRendering.cs
- TcpTransportBindingElement.cs
- SimplePropertyEntry.cs
- FormViewInsertedEventArgs.cs
- TextTreeRootTextBlock.cs
- AttributeEmitter.cs
- DataGridViewLinkCell.cs
- AnimatedTypeHelpers.cs
- TypeConverterBase.cs
- CompatibleComparer.cs
- WebPartDisplayModeCollection.cs
- AsmxEndpointPickerExtension.cs