Table of Contents

Method TryGetPixelInfo

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Primitives.dll

TryGetPixelInfo(in PixelFormat)

Gets information about the pixel format.

public static IPixelInfo? TryGetPixelInfo(this in PixelFormat format)

Parameters

format PixelFormat

Returns

IPixelInfo

Remarks

This will be a boxed instance of a color struct, e.g. ColorAlpha8 for PixelFormats.Alpha8.

TryGetPixelInfo(in PixelFormat, out IPixelInfo?)

public static bool TryGetPixelInfo(this in PixelFormat format, out IPixelInfo? pixelInfo)

Parameters

format PixelFormat
pixelInfo IPixelInfo

Returns

bool