Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PixelFormats.cs / 1305600 / PixelFormats.cs
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2003
//
// File: PixelFormats.cs
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Reflection;
using MS.Internal;
using System.Diagnostics;
using System.Windows.Media;
using System.Globalization;
using System.Runtime.InteropServices;
namespace System.Windows.Media
{
#region PixelFormats
///
/// PixelFormats - The collection of supported Pixel Formats
///
public static class PixelFormats
{
///
/// Default: for situations when the pixel format may not be important
///
public static PixelFormat Default
{
get
{
return new PixelFormat(PixelFormatEnum.Default);
}
}
///
/// Indexed1: Paletted image with 2 colors.
///
public static PixelFormat Indexed1
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed1);
}
}
///
/// Indexed2: Paletted image with 4 colors.
///
public static PixelFormat Indexed2
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed2);
}
}
///
/// Indexed4: Paletted image with 16 colors.
///
public static PixelFormat Indexed4
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed4);
}
}
///
/// Indexed8: Paletted image with 256 colors.
///
public static PixelFormat Indexed8
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed8);
}
}
///
/// BlackWhite: Monochrome, 2-color image, black and white only.
///
public static PixelFormat BlackWhite
{
get
{
return new PixelFormat(PixelFormatEnum.BlackWhite);
}
}
///
/// Gray2: Image with 4 shades of gray
///
public static PixelFormat Gray2
{
get
{
return new PixelFormat(PixelFormatEnum.Gray2);
}
}
///
/// Gray4: Image with 16 shades of gray
///
public static PixelFormat Gray4
{
get
{
return new PixelFormat(PixelFormatEnum.Gray4);
}
}
///
/// Gray8: Image with 256 shades of gray
///
public static PixelFormat Gray8
{
get
{
return new PixelFormat(PixelFormatEnum.Gray8);
}
}
///
/// Bgr555: 16 bpp SRGB format
///
public static PixelFormat Bgr555
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr555);
}
}
///
/// Bgr565: 16 bpp SRGB format
///
public static PixelFormat Bgr565
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr565);
}
}
///
/// Rgb128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgb128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb128Float);
}
}
///
/// Bgr24: 24 bpp SRGB format
///
public static PixelFormat Bgr24
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr24);
}
}
///
/// Rgb24: 24 bpp SRGB format
///
public static PixelFormat Rgb24
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb24);
}
}
///
/// Bgr101010: 32 bpp SRGB format
///
public static PixelFormat Bgr101010
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr101010);
}
}
///
/// Bgr32: 32 bpp SRGB format
///
public static PixelFormat Bgr32
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr32);
}
}
///
/// Bgra32: 32 bpp SRGB format
///
public static PixelFormat Bgra32
{
get
{
return new PixelFormat(PixelFormatEnum.Bgra32);
}
}
///
/// Pbgra32: 32 bpp SRGB format
///
public static PixelFormat Pbgra32
{
get
{
return new PixelFormat(PixelFormatEnum.Pbgra32);
}
}
///
/// Rgb48: 48 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgb48
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb48);
}
}
///
/// Rgba64: 64 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgba64
{
get
{
return new PixelFormat(PixelFormatEnum.Rgba64);
}
}
///
/// Prgba64: 64 bpp extended format; Gamma is 1.0
///
public static PixelFormat Prgba64
{
get
{
return new PixelFormat(PixelFormatEnum.Prgba64);
}
}
///
/// Gray16: 16 bpp Gray-scale format; Gamma is 1.0
///
public static PixelFormat Gray16
{
get
{
return new PixelFormat(PixelFormatEnum.Gray16);
}
}
///
/// Gray32Float: 32 bpp Gray-scale format; Gamma is 1.0
///
public static PixelFormat Gray32Float
{
get
{
return new PixelFormat(PixelFormatEnum.Gray32Float);
}
}
///
/// Rgba128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgba128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Rgba128Float);
}
}
///
/// Prgba128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Prgba128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Prgba128Float);
}
}
///
/// Cmyk32: 32 bpp format
///
public static PixelFormat Cmyk32
{
get
{
return new PixelFormat(PixelFormatEnum.Cmyk32);
}
}
}
#endregion // PixelFormats
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2003
//
// File: PixelFormats.cs
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Reflection;
using MS.Internal;
using System.Diagnostics;
using System.Windows.Media;
using System.Globalization;
using System.Runtime.InteropServices;
namespace System.Windows.Media
{
#region PixelFormats
///
/// PixelFormats - The collection of supported Pixel Formats
///
public static class PixelFormats
{
///
/// Default: for situations when the pixel format may not be important
///
public static PixelFormat Default
{
get
{
return new PixelFormat(PixelFormatEnum.Default);
}
}
///
/// Indexed1: Paletted image with 2 colors.
///
public static PixelFormat Indexed1
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed1);
}
}
///
/// Indexed2: Paletted image with 4 colors.
///
public static PixelFormat Indexed2
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed2);
}
}
///
/// Indexed4: Paletted image with 16 colors.
///
public static PixelFormat Indexed4
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed4);
}
}
///
/// Indexed8: Paletted image with 256 colors.
///
public static PixelFormat Indexed8
{
get
{
return new PixelFormat(PixelFormatEnum.Indexed8);
}
}
///
/// BlackWhite: Monochrome, 2-color image, black and white only.
///
public static PixelFormat BlackWhite
{
get
{
return new PixelFormat(PixelFormatEnum.BlackWhite);
}
}
///
/// Gray2: Image with 4 shades of gray
///
public static PixelFormat Gray2
{
get
{
return new PixelFormat(PixelFormatEnum.Gray2);
}
}
///
/// Gray4: Image with 16 shades of gray
///
public static PixelFormat Gray4
{
get
{
return new PixelFormat(PixelFormatEnum.Gray4);
}
}
///
/// Gray8: Image with 256 shades of gray
///
public static PixelFormat Gray8
{
get
{
return new PixelFormat(PixelFormatEnum.Gray8);
}
}
///
/// Bgr555: 16 bpp SRGB format
///
public static PixelFormat Bgr555
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr555);
}
}
///
/// Bgr565: 16 bpp SRGB format
///
public static PixelFormat Bgr565
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr565);
}
}
///
/// Rgb128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgb128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb128Float);
}
}
///
/// Bgr24: 24 bpp SRGB format
///
public static PixelFormat Bgr24
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr24);
}
}
///
/// Rgb24: 24 bpp SRGB format
///
public static PixelFormat Rgb24
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb24);
}
}
///
/// Bgr101010: 32 bpp SRGB format
///
public static PixelFormat Bgr101010
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr101010);
}
}
///
/// Bgr32: 32 bpp SRGB format
///
public static PixelFormat Bgr32
{
get
{
return new PixelFormat(PixelFormatEnum.Bgr32);
}
}
///
/// Bgra32: 32 bpp SRGB format
///
public static PixelFormat Bgra32
{
get
{
return new PixelFormat(PixelFormatEnum.Bgra32);
}
}
///
/// Pbgra32: 32 bpp SRGB format
///
public static PixelFormat Pbgra32
{
get
{
return new PixelFormat(PixelFormatEnum.Pbgra32);
}
}
///
/// Rgb48: 48 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgb48
{
get
{
return new PixelFormat(PixelFormatEnum.Rgb48);
}
}
///
/// Rgba64: 64 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgba64
{
get
{
return new PixelFormat(PixelFormatEnum.Rgba64);
}
}
///
/// Prgba64: 64 bpp extended format; Gamma is 1.0
///
public static PixelFormat Prgba64
{
get
{
return new PixelFormat(PixelFormatEnum.Prgba64);
}
}
///
/// Gray16: 16 bpp Gray-scale format; Gamma is 1.0
///
public static PixelFormat Gray16
{
get
{
return new PixelFormat(PixelFormatEnum.Gray16);
}
}
///
/// Gray32Float: 32 bpp Gray-scale format; Gamma is 1.0
///
public static PixelFormat Gray32Float
{
get
{
return new PixelFormat(PixelFormatEnum.Gray32Float);
}
}
///
/// Rgba128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Rgba128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Rgba128Float);
}
}
///
/// Prgba128Float: 128 bpp extended format; Gamma is 1.0
///
public static PixelFormat Prgba128Float
{
get
{
return new PixelFormat(PixelFormatEnum.Prgba128Float);
}
}
///
/// Cmyk32: 32 bpp format
///
public static PixelFormat Cmyk32
{
get
{
return new PixelFormat(PixelFormatEnum.Cmyk32);
}
}
}
#endregion // PixelFormats
}
// 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
- ReversePositionQuery.cs
- BitmapEffect.cs
- RowSpanVector.cs
- BezierSegment.cs
- IsolatedStorage.cs
- ConfigXmlElement.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SmiEventSink.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ContextMenuStripActionList.cs
- ValidationRuleCollection.cs
- HexParser.cs
- WindowsUpDown.cs
- SelectorAutomationPeer.cs
- BufferedGenericXmlSecurityToken.cs
- CheckBoxFlatAdapter.cs
- RangeValidator.cs
- KeyNotFoundException.cs
- SocketInformation.cs
- MultipartIdentifier.cs
- SqlIdentifier.cs
- MemberAccessException.cs
- PropagatorResult.cs
- MouseGestureConverter.cs
- PackageRelationship.cs
- InfocardExtendedInformationCollection.cs
- GenericEnumConverter.cs
- DefaultMemberAttribute.cs
- PriorityBindingExpression.cs
- FlowDocumentScrollViewer.cs
- CalculatedColumn.cs
- UniqueSet.cs
- WindowsGraphicsCacheManager.cs
- Header.cs
- URI.cs
- SQLStringStorage.cs
- XmlUnspecifiedAttribute.cs
- XmlSerializationGeneratedCode.cs
- FontFaceLayoutInfo.cs
- DecoratedNameAttribute.cs
- RootBrowserWindow.cs
- SqlDataSourceView.cs
- PageTheme.cs
- Update.cs
- DataGridItemEventArgs.cs
- SchemaTableColumn.cs
- ExtensionSurface.cs
- TypeSystem.cs
- XmlSchemaAttributeGroupRef.cs
- DataBoundControl.cs
- CrossContextChannel.cs
- BamlLocalizationDictionary.cs
- ButtonColumn.cs
- ClientCultureInfo.cs
- UnlockInstanceCommand.cs
- AssemblyGen.cs
- Lookup.cs
- InvokePattern.cs
- AspNetCompatibilityRequirementsAttribute.cs
- TreeNodeBindingCollection.cs
- PriorityItem.cs
- Mutex.cs
- HandlerBase.cs
- HtmlElement.cs
- Scheduler.cs
- DescriptionAttribute.cs
- ObjectCache.cs
- UrlMappingsModule.cs
- X509RawDataKeyIdentifierClause.cs
- CategoryAttribute.cs
- ExpressionBindingCollection.cs
- CollectionMarkupSerializer.cs
- FixedNode.cs
- LayoutTable.cs
- CardSpaceSelector.cs
- TrackingConditionCollection.cs
- odbcmetadatacolumnnames.cs
- TypeReference.cs
- DataGridViewRowPostPaintEventArgs.cs
- CallbackValidator.cs
- DataGridViewCellPaintingEventArgs.cs
- ExceptionRoutedEventArgs.cs
- InheritablePropertyChangeInfo.cs
- RowParagraph.cs
- Size3D.cs
- SoapIncludeAttribute.cs
- DoubleAnimation.cs
- HwndStylusInputProvider.cs
- AsymmetricSignatureFormatter.cs
- EntityDataSourceReferenceGroup.cs
- TableDetailsCollection.cs
- InputScopeNameConverter.cs
- DataGridBoolColumn.cs
- ResourceReader.cs
- ClientUrlResolverWrapper.cs
- HitTestFilterBehavior.cs
- DataRecordObjectView.cs
- HwndKeyboardInputProvider.cs
- EllipticalNodeOperations.cs
- TextAdaptor.cs