Table of Contents

Struct PixelFormat

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Contains the data format and alpha mode for a bitmap or render target.

public struct PixelFormat
Inherited Members

Remarks

For more information about the pixel formats and alpha modes supported by each render target, see Supported Pixel Formats and Alpha Modes.

Constructors

PixelFormat(Format, AlphaMode)

Initializes a new instance of the PixelFormat struct.

public PixelFormat(Format format, AlphaMode alphaMode)

Parameters

format Format

A value that specifies the size and arrangement of channels in each pixel.

alphaMode AlphaMode

A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unknown.

Fields

AlphaMode

A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unkown.

public AlphaMode AlphaMode

Field Value

AlphaMode

Format

A value that specifies the size and arrangement of channels in each pixel.

public Format Format

Field Value

Format