Image::IsCanonicalPixelFormat Method (PixelFormat)

 

Returns a value that indicates whether the pixel format is 32 bits per pixel.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static bool IsCanonicalPixelFormat(
	PixelFormat pixfmt
)

Parameters

pixfmt
Type: System.Drawing.Imaging::PixelFormat

The PixelFormat to test.

Return Value

Type: System::Boolean

true if pixfmt is canonical; otherwise, false.

The canonical pixel format indicates a pixel format of 32 bits per pixel. This format specifies 24-bit color depth and an 8-bit alpha channel.

.NET Framework
Available since 1.1
Return to top
Show: