Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Imaging / Generated / FormatConvertedBitmap.cs / 2 / FormatConvertedBitmap.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 FormatConvertedBitmap : BitmapSource { #region Constructors //----------------------------------------------------- // // Constructors // //----------------------------------------------------- static FormatConvertedBitmap() { // 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 FormatConvertedBitmap.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 FormatConvertedBitmap Clone() { return (FormatConvertedBitmap)base.Clone(); } ////// Shadows inherited CloneCurrentValue() with a strongly typed /// version for convenience. /// public new FormatConvertedBitmap CloneCurrentValue() { return (FormatConvertedBitmap)base.CloneCurrentValue(); } #endregion Public Methods //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ private static void SourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FormatConvertedBitmap target = ((FormatConvertedBitmap) d); target.SourcePropertyChangedHook(e); if (e.IsASubPropertyChange) { return; } target.PropertyChanged(SourceProperty); } private static void DestinationFormatPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FormatConvertedBitmap target = ((FormatConvertedBitmap) d); target.DestinationFormatPropertyChangedHook(e); target.PropertyChanged(DestinationFormatProperty); } private static void DestinationPalettePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FormatConvertedBitmap target = ((FormatConvertedBitmap) d); target.DestinationPalettePropertyChangedHook(e); target.PropertyChanged(DestinationPaletteProperty); } private static void AlphaThresholdPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FormatConvertedBitmap target = ((FormatConvertedBitmap) d); target.AlphaThresholdPropertyChangedHook(e); target.PropertyChanged(AlphaThresholdProperty); } #region Public Properties ////// Source - BitmapSource. Default value is null. /// public BitmapSource Source { get { return (BitmapSource) GetValue(SourceProperty); } set { SetValueInternal(SourceProperty, value); } } ////// DestinationFormat - PixelFormat. Default value is PixelFormats.Pbgra32. /// public PixelFormat DestinationFormat { get { return (PixelFormat) GetValue(DestinationFormatProperty); } set { SetValueInternal(DestinationFormatProperty, value); } } ////// DestinationPalette - BitmapPalette. Default value is null. /// public BitmapPalette DestinationPalette { get { return (BitmapPalette) GetValue(DestinationPaletteProperty); } set { SetValueInternal(DestinationPaletteProperty, value); } } ////// AlphaThreshold - double. Default value is 0.0. /// public double AlphaThreshold { get { return (double) GetValue(AlphaThresholdProperty); } set { SetValueInternal(AlphaThresholdProperty, value); } } #endregion Public Properties //----------------------------------------------------- // // Protected Methods // //------------------------------------------------------ #region Protected Methods ////// Implementation of ///Freezable.CreateInstanceCore . ///The new Freezable. protected override Freezable CreateInstanceCore() { return new FormatConvertedBitmap(); } ////// Implementation of Freezable.CloneCore() /// protected override void CloneCore(Freezable source) { FormatConvertedBitmap sourceFormatConvertedBitmap = (FormatConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceFormatConvertedBitmap); base.CloneCore(source); // Set state once clone has finished ClonePostscript(sourceFormatConvertedBitmap); } ////// Implementation of Freezable.CloneCurrentValueCore() /// protected override void CloneCurrentValueCore(Freezable source) { FormatConvertedBitmap sourceFormatConvertedBitmap = (FormatConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceFormatConvertedBitmap); base.CloneCurrentValueCore(source); // Set state once clone has finished ClonePostscript(sourceFormatConvertedBitmap); } ////// Implementation of Freezable.GetAsFrozenCore() /// protected override void GetAsFrozenCore(Freezable source) { FormatConvertedBitmap sourceFormatConvertedBitmap = (FormatConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceFormatConvertedBitmap); base.GetAsFrozenCore(source); // Set state once clone has finished ClonePostscript(sourceFormatConvertedBitmap); } ////// Implementation of Freezable.GetCurrentValueAsFrozenCore() /// protected override void GetCurrentValueAsFrozenCore(Freezable source) { FormatConvertedBitmap sourceFormatConvertedBitmap = (FormatConvertedBitmap) source; // Set any state required before actual clone happens ClonePrequel(sourceFormatConvertedBitmap); base.GetCurrentValueAsFrozenCore(source); // Set state once clone has finished ClonePostscript(sourceFormatConvertedBitmap); } #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 FormatConvertedBitmap.Source property. /// public static readonly DependencyProperty SourceProperty = RegisterProperty("Source", typeof(BitmapSource), typeof(FormatConvertedBitmap), null, new PropertyChangedCallback(SourcePropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceSource)); ////// The DependencyProperty for the FormatConvertedBitmap.DestinationFormat property. /// public static readonly DependencyProperty DestinationFormatProperty = RegisterProperty("DestinationFormat", typeof(PixelFormat), typeof(FormatConvertedBitmap), PixelFormats.Pbgra32, new PropertyChangedCallback(DestinationFormatPropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceDestinationFormat)); ////// The DependencyProperty for the FormatConvertedBitmap.DestinationPalette property. /// public static readonly DependencyProperty DestinationPaletteProperty = RegisterProperty("DestinationPalette", typeof(BitmapPalette), typeof(FormatConvertedBitmap), null, new PropertyChangedCallback(DestinationPalettePropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceDestinationPalette)); ////// The DependencyProperty for the FormatConvertedBitmap.AlphaThreshold property. /// public static readonly DependencyProperty AlphaThresholdProperty = RegisterProperty("AlphaThreshold", typeof(double), typeof(FormatConvertedBitmap), 0.0, new PropertyChangedCallback(AlphaThresholdPropertyChanged), null, /* isIndependentlyAnimated = */ false, /* coerceValueCallback */ new CoerceValueCallback(CoerceAlphaThreshold)); #endregion Dependency Properties //------------------------------------------------------ // // Internal Fields // //----------------------------------------------------- #region Internal Fields internal static BitmapSource s_Source = null; internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; internal static BitmapPalette s_DestinationPalette = null; internal const double c_AlphaThreshold = 0.0; #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
- SmiEventSink_DeferedProcessing.cs
- AssemblyName.cs
- QilFactory.cs
- NotifyIcon.cs
- recordstatescratchpad.cs
- XmlChoiceIdentifierAttribute.cs
- ControlValuePropertyAttribute.cs
- TripleDES.cs
- SHA1Cng.cs
- Wow64ConfigurationLoader.cs
- PreviewKeyDownEventArgs.cs
- RuleSettings.cs
- SlotInfo.cs
- MenuItem.cs
- InstallerTypeAttribute.cs
- ExpandableObjectConverter.cs
- SettingsPropertyWrongTypeException.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Pair.cs
- ObjectViewFactory.cs
- TextParaLineResult.cs
- Typeface.cs
- EntityViewGenerator.cs
- SafeFileMapViewHandle.cs
- ResourcesBuildProvider.cs
- TraceSwitch.cs
- ToolBar.cs
- CheckBoxBaseAdapter.cs
- OrthographicCamera.cs
- WindowsRichEdit.cs
- TrackingProfileSerializer.cs
- GACMembershipCondition.cs
- BindingListCollectionView.cs
- IDQuery.cs
- ValueSerializerAttribute.cs
- AuthenticationModuleElementCollection.cs
- ServiceHostFactory.cs
- AccessedThroughPropertyAttribute.cs
- Parser.cs
- ForceCopyBuildProvider.cs
- CheckBoxBaseAdapter.cs
- AutomationProperties.cs
- XmlSecureResolver.cs
- UTF32Encoding.cs
- MetadataItemEmitter.cs
- GeneralTransform3DTo2DTo3D.cs
- RemoteWebConfigurationHostServer.cs
- AnnotationService.cs
- CodeEventReferenceExpression.cs
- SchemaHelper.cs
- AggregateNode.cs
- StringValidator.cs
- SizeF.cs
- DataGridViewCell.cs
- SystemTcpStatistics.cs
- StringUtil.cs
- DebugControllerThread.cs
- FrameAutomationPeer.cs
- _SpnDictionary.cs
- IpcPort.cs
- WebPartChrome.cs
- TextDecorations.cs
- odbcmetadatafactory.cs
- WeakEventManager.cs
- DataGridTableCollection.cs
- EntitySet.cs
- DataServiceQueryOfT.cs
- DbConnectionPoolGroup.cs
- TextRunCache.cs
- VisualTreeUtils.cs
- BinaryMethodMessage.cs
- DecimalAnimation.cs
- TypeElement.cs
- AssemblyBuilder.cs
- OracleBoolean.cs
- InfiniteTimeSpanConverter.cs
- TextEditorContextMenu.cs
- NativeMethods.cs
- TaskFormBase.cs
- DataSetMappper.cs
- ScriptingSectionGroup.cs
- HttpContextServiceHost.cs
- TextServicesLoader.cs
- DBSchemaTable.cs
- diagnosticsswitches.cs
- StyleCollection.cs
- SqlDataSourceCache.cs
- Context.cs
- OlePropertyStructs.cs
- BypassElement.cs
- Label.cs
- LeafCellTreeNode.cs
- XmlDataSourceNodeDescriptor.cs
- DataServiceResponse.cs
- SimplePropertyEntry.cs
- NumericExpr.cs
- ResourceExpression.cs
- Expressions.cs
- CustomAttributeSerializer.cs
- Action.cs