Image.IsCanonicalPixelFormat Method (PixelFormat)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: