EmfPixelFormatDescriptor

EmfPixelFormatDescriptor class

The PixelFormatDescriptor object can be used in EMR_HEADER records (section 2.3.4.2) to specify the pixel format of the output surface for the playback device context.

public sealed class EmfPixelFormatDescriptor : EmfObject

Constructors

NameDescription
EmfPixelFormatDescriptor()The default constructor.

Properties

NameDescription
BReserved { get; set; }Gets or sets specifies the number of overlay and underlay planes. Bits 0 through 3 specify up to 15 overlay planes and bits 4 through 7 specify up to 15 underlay planes
CAccumAlphaBits { get; set; }Gets or sets specifies the number of alpha bitplanes in the accumulation buffer
CAccumBits { get; set; }Gets or sets specifies the total number of bitplanes in the accumulation buffer.
CAccumBlueBits { get; set; }Gets or sets specifies the number of blue bitplanes in the accumulation buffer.
CAccumGreenBits { get; set; }Gets or sets specifies the number of green bitplanes in the accumulation
CAccumRedBits { get; set; }Gets or sets specifies the number of red bitplanes in the accumulation buffer
CAlphaBits { get; set; }Gets or sets Specifies the number of alpha bitplanes in each RGBA color buffer
CAlphaShift { get; set; }Gets or sets Specifies the shift count for alpha bitplanes in each RGBA color buffer
CAuxBuffers { get; set; }Gets or sets specifies the number of auxiliary buffers. Auxiliary buffers are not supported
CBlueBits { get; set; }Gets or sets Specifies the number of blue bitplanes in each RGBA color buffer.
CBlueShift { get; set; }Gets or sets Specifies the shift count for blue bitplanes in each RGBA color buffer.
CColorBits { get; set; }Gets or sets the number of bits per pixel for RGBA pixel types, excluding the alpha bitplanes. For color table pixels, it is the size of each color table index
CDepthBits { get; set; }Gets or sets specifies the depth of the depth (z-axis) buffer.
CGreenBits { get; set; }Gets or sets Specifies the number of green bitplanes in each RGBA color buffer
CGreenShift { get; set; }Gets or sets Specifies the shift count for green bitplanes in each RGBA color buffer.
CRedBits { get; set; }Gets or sets Specifies the number of red bitplanes in each RGBA color buffer
CRedShift { get; set; }Gets or sets Specifies the shift count in bits for red bitplanes in each RGBA color buffer.
CStencilBits { get; set; }Gets or sets specifies the depth of the stencil buffer.
DwDamageMask { get; set; }Gets or sets This field MAY be ignored
DwFlags { get; set; }Gets or sets bit flags that specify properties of the pixel buffer that is used for output to the drawing surface. These properties are not all mutually exclusive; combinations of flags are allowed, except where noted otherwise.
DwLayerMask { get; set; }Gets or sets This field MAY be ignored.
DwVisibleMask { get; set; }Gets or sets specifies the transparent color or index of an underlay plane. When the pixel type is RGBA, dwVisibleMask is a transparent RGB color value. When the pixel type is color index, it is a transparent index value.
ILayerType { get; set; }Gets or sets This field MAY be ignored
IPixelType { get; set; }Gets or sets the type of pixel data PFD_TYPE_RGBA 0x00 The pixel format is RGBA. PFD_TYPE_COLORINDEX 0x01 Each pixel is an index in a color table.
NSize { get; set; }Gets or sets a 16-bit integer that specifies the size, in bytes, of this data structure.
NVersion { get; set; }Gets or sets a 16-bit integer that MUST be set to 0x0001.

See Also