Struct PixelFormat
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
FormatA value that specifies the size and arrangement of channels in each pixel.
alphaMode
AlphaModeA 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
Format
A value that specifies the size and arrangement of channels in each pixel.
public Format Format
Field Value
- Format