This documentation is for the old version. Go to the latest Graphics Mill docs

CustomFormatWriter.IsPixelFormatSupported Method

Checks if the provided pixel format is supported.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overrides Function IsPixelFormatSupported ( _
	pixelFormat As PixelFormat _
) As Boolean
C#
public override bool IsPixelFormatSupported(
	PixelFormat pixelFormat
)

Parameters

pixelFormat

Type: Aurigma.GraphicsMill.PixelFormat

PixelFormat enumeration member that specifies the pixel format you would like to verify.

Return Value

true if the writer can save bitmaps of the specified pixel formats without conversion to another pixel format; false otherwise.

Examples

C#
protected override bool IsPixelFormatSupported(PixelFormat pixelFormat)
{
    return (pixelFormat == PixelFormat.Format1bppIndexed);
}

See Also

Reference