Table of Contents

Class PixelFormatInfo

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("E8EDA601-3D48-431a-AB44-69059BE88BBE")]
public class PixelFormatInfo : ComponentInfo
Inheritance
PixelFormatInfo
Derived
Inherited Members

Constructors

PixelFormatInfo(nint)

public PixelFormatInfo(nint nativePtr)

Parameters

nativePtr nint

Properties

BitsPerPixel

Proxy function for the GetBitsPerPixel method.

public int BitsPerPixel { get; }

Property Value

int

ChannelCount

Proxy function for the GetChannelCount method.

public int ChannelCount { get; }

Property Value

int

ColorContext

Gets the pixel format's ColorContext.

public ColorContext ColorContext { get; }

Property Value

ColorContext

Remarks

The returned color context is the default color space for the pixel format. However, if an BitmapSource specifies its own color context, the source's context should be preferred over the pixel format's default.

FormatGUID

Gets the pixel format Guid.

public Guid FormatGUID { get; }

Property Value

Guid

Methods

GetChannelMask(int)

Gets the channel mask.

public byte[] GetChannelMask(int channelIndex)

Parameters

channelIndex int

Index of the channel.

Returns

byte[]

Operators

explicit operator PixelFormatInfo(nint)

public static explicit operator PixelFormatInfo(nint nativePtr)

Parameters

nativePtr nint

Returns

PixelFormatInfo