Class PixelFormatInfo
[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
ChannelCount
Proxy function for the GetChannelCount method.
public int ChannelCount { get; }
Property Value
ColorContext
Gets the pixel format's ColorContext.
public ColorContext ColorContext { get; }
Property Value
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
Methods
GetChannelMask(int)
Gets the channel mask.
public byte[] GetChannelMask(int channelIndex)
Parameters
channelIndex
intIndex of the channel.
Returns
- byte[]
Operators
explicit operator PixelFormatInfo(nint)
public static explicit operator PixelFormatInfo(nint nativePtr)
Parameters
nativePtr
nint