Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Imaging / Generated / ColorConvertedBitmap.cs / 2 / ColorConvertedBitmap.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see [....]/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Net.Cache; using System.Runtime.InteropServices; using System.Windows.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Windows.Media.Media3D; using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop using BOOL = System.UInt32; using WORD = System.UInt16; using Float = System.Single; namespace System.Windows.Media.Imaging { sealed partial class ColorConvertedBitmap : BitmapSource { #region Constructors //----------------------------------------------------- // // Constructors // //----------------------------------------------------- static ColorConvertedBitmap() { // We check our static default fields which are of type Freezable // to make sure that they are not mutable, otherwise we will throw // if these get touched by more than one thread in the lifetime // of your app. (Windows OS Bug #947272) // Debug.Assert(s_Source == null || s_Source.IsFrozen, "Detected context bound default value ColorConvertedBitmap.s_Source (See OS Bug #947272)."); } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Shadows inherited Clone() with a strongly typed /// version for convenience. /// public new ColorConvertedBitmap Clone() { return (ColorConvertedBitmap)base.Clone(); } ////// Shadows inherited CloneCurrentValue() with a strongly typed /// version for convenience. /// public new ColorConvertedBitmap CloneCurrentValue() { return (ColorConvertedBitmap)base.CloneCurrentValue(); } #endregion Public Methods //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ private static void SourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorConvertedBitmap target = ((ColorConvertedBitmap) d); target.SourcePropertyChangedHook(e); if (e.IsASubPropertyChange) { return; } target.PropertyChanged(SourceProperty); } private static void SourceColorContextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorConvertedBitmap target = ((ColorConvertedBitmap) d); target.SourceColorContextPropertyChangedHook(e); target.PropertyChanged(SourceColorContextProperty); } private static void DestinationColorContextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorConvertedBitmap target = ((ColorConvertedBitmap) d); target.DestinationColorContextPropertyChangedHook(e); target.PropertyChanged(DestinationColorContextProperty); } private static void DestinationFormatPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorConvertedBitmap target = ((ColorConvertedBitmap) d); target.DestinationFormatPropertyChangedHook(e); target.PropertyChanged(DestinationFormatProperty); } #region Public Properties ////// Source - BitmapSource. Default value is null. /// public BitmapSource Source { get { return (BitmapSource) GetValue(SourceProperty); } set { SetValueInternal(SourceProperty, value); } } ////// SourceColorContext - ColorContext. Default value is null. /// public ColorContext SourceColorContext { get { return (ColorContext) GetValue(SourceColorContextProperty); } set { SetValueInternal(SourceColorContextProperty, value); } } ////// DestinationColorContext - ColorContext. Default value is null. /// public ColorContext DestinationColorContext { get { return (ColorContext) GetValue(DestinationColorContextProperty); } set { SetValueInternal(DestinationColorContextProperty, value); } } ////// DestinationFormat - PixelFormat. Default value is PixelFormats.Pbgra32. /// public PixelFormat DestinationFormat { get { return (PixelFormat) GetValue(DestinationFormatProperty); } set { SetValueInternal(DestinationFormatProperty, value); } } #endregion Public Properties //----------------------------------------------------- // // Protected Methods // //------------------------------------------------------ #region Protected Methods ////// Implementation of ///Freezable.CreateInstanceCore . ///The new Freezable. protected override Freezable CreateInstanceCore() { return new ColorConvertedBitmap(); } ////// Implementation of Freezable.CloneCore() /// protected override void CloneCore(Freezable source) { ColorConvertedBitmap sourceColorConvertedBitmap = (ColorConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceColorConvertedBitmap); base.CloneCore(source); // Set state once clone has finished ClonePostscript(sourceColorConvertedBitmap); } ////// Implementation of Freezable.CloneCurrentValueCore() /// protected override void CloneCurrentValueCore(Freezable source) { ColorConvertedBitmap sourceColorConvertedBitmap = (ColorConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceColorConvertedBitmap); base.CloneCurrentValueCore(source); // Set state once clone has finished ClonePostscript(sourceColorConvertedBitmap); } ////// Implementation of Freezable.GetAsFrozenCore() /// protected override void GetAsFrozenCore(Freezable source) { ColorConvertedBitmap sourceColorConvertedBitmap = (ColorConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceColorConvertedBitmap); base.GetAsFrozenCore(source); // Set state once clone has finished ClonePostscript(sourceColorConvertedBitmap); } ////// Implementation of Freezable.GetCurrentValueAsFrozenCore() /// protected override void GetCurrentValueAsFrozenCore(Freezable source) { ColorConvertedBitmap sourceColorConvertedBitmap = (ColorConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceColorConvertedBitmap); base.GetCurrentValueAsFrozenCore(source); // Set state once clone has finished ClonePostscript(sourceColorConvertedBitmap); } #endregion ProtectedMethods //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- #region Internal Methods #endregion Internal Methods //----------------------------------------------------- // // Internal Properties // //------------------------------------------------------ #region Internal Properties #endregion Internal Properties //----------------------------------------------------- // // Dependency Properties // //------------------------------------------------------ #region Dependency Properties ////// The DependencyProperty for the ColorConvertedBitmap.Source property. /// public static readonly DependencyProperty SourceProperty = RegisterProperty("Source", typeof(BitmapSource), typeof(ColorConvertedBitmap), null, new PropertyChangedCallback(SourcePropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceSource)); ////// The DependencyProperty for the ColorConvertedBitmap.SourceColorContext property. /// public static readonly DependencyProperty SourceColorContextProperty = RegisterProperty("SourceColorContext", typeof(ColorContext), typeof(ColorConvertedBitmap), null, new PropertyChangedCallback(SourceColorContextPropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceSourceColorContext)); ////// The DependencyProperty for the ColorConvertedBitmap.DestinationColorContext property. /// public static readonly DependencyProperty DestinationColorContextProperty = RegisterProperty("DestinationColorContext", typeof(ColorContext), typeof(ColorConvertedBitmap), null, new PropertyChangedCallback(DestinationColorContextPropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceDestinationColorContext)); ////// The DependencyProperty for the ColorConvertedBitmap.DestinationFormat property. /// public static readonly DependencyProperty DestinationFormatProperty = RegisterProperty("DestinationFormat", typeof(PixelFormat), typeof(ColorConvertedBitmap), PixelFormats.Pbgra32, new PropertyChangedCallback(DestinationFormatPropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceDestinationFormat)); #endregion Dependency Properties //------------------------------------------------------ // // Internal Fields // //----------------------------------------------------- #region Internal Fields internal static BitmapSource s_Source = null; internal static ColorContext s_SourceColorContext = null; internal static ColorContext s_DestinationColorContext = null; internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; #endregion Internal Fields } } // 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
- MgmtResManager.cs
- XmlSchemaComplexContentRestriction.cs
- QueryHandler.cs
- MetadataArtifactLoaderCompositeResource.cs
- PreProcessInputEventArgs.cs
- ContentFileHelper.cs
- CodeNamespaceCollection.cs
- ProgressChangedEventArgs.cs
- DynamicMethod.cs
- IDReferencePropertyAttribute.cs
- Point4D.cs
- FormViewUpdateEventArgs.cs
- LineUtil.cs
- HMACSHA256.cs
- BuildProvidersCompiler.cs
- TextBox.cs
- TextEditorTables.cs
- InkSerializer.cs
- Matrix3DStack.cs
- HotCommands.cs
- PreviewPrintController.cs
- Stopwatch.cs
- Statements.cs
- Wrapper.cs
- SpecialNameAttribute.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AttachmentCollection.cs
- MDIWindowDialog.cs
- MsmqOutputMessage.cs
- LocalizableAttribute.cs
- ListDependantCardsRequest.cs
- BridgeDataReader.cs
- Int32CollectionConverter.cs
- GeneralTransform3DGroup.cs
- NTAccount.cs
- MsmqHostedTransportConfiguration.cs
- _NestedSingleAsyncResult.cs
- FileDialog_Vista.cs
- XmlSchemaExporter.cs
- ColorConverter.cs
- ImpersonationContext.cs
- DbConnectionClosed.cs
- OutputScopeManager.cs
- SqlUnionizer.cs
- ThrowOnMultipleAssignment.cs
- WindowsSolidBrush.cs
- HtmlContainerControl.cs
- XmlTextEncoder.cs
- UnsafeNativeMethods.cs
- ChainOfDependencies.cs
- RectConverter.cs
- Expander.cs
- AjaxFrameworkAssemblyAttribute.cs
- WebSysDefaultValueAttribute.cs
- WindowsToolbarAsMenu.cs
- ValidationPropertyAttribute.cs
- FilterElement.cs
- StopRoutingHandler.cs
- HMAC.cs
- UIServiceHelper.cs
- SingleObjectCollection.cs
- SqlProviderServices.cs
- SignatureToken.cs
- EncodingDataItem.cs
- AssemblyInfo.cs
- WSSecureConversation.cs
- EdmRelationshipRoleAttribute.cs
- SafeViewOfFileHandle.cs
- WebPartActionVerb.cs
- FileDialogCustomPlacesCollection.cs
- WorkflowLayouts.cs
- PasswordBox.cs
- FtpWebRequest.cs
- AspCompat.cs
- ReferencedType.cs
- MasterPageBuildProvider.cs
- LineGeometry.cs
- UTF7Encoding.cs
- ConvertBinder.cs
- PersistenceTypeAttribute.cs
- PersonalizationDictionary.cs
- SchemaNamespaceManager.cs
- MembershipSection.cs
- TypeGeneratedEventArgs.cs
- RenderTargetBitmap.cs
- SqlBulkCopyColumnMapping.cs
- ConsoleKeyInfo.cs
- SecurityHeaderLayout.cs
- ZipIOLocalFileBlock.cs
- XsdCachingReader.cs
- DockAndAnchorLayout.cs
- StackSpiller.Bindings.cs
- ProjectionCamera.cs
- RepeatInfo.cs
- TextDecorationCollection.cs
- Helpers.cs
- Normalization.cs
- PLINQETWProvider.cs
- Stack.cs
- TypeValidationEventArgs.cs