PixelFormatExtensionsIsSupportedNatively Method

Gets whether the specified pixelFormat is supported natively on the current operating system.


Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static bool IsSupportedNatively(
	this PixelFormat pixelFormat


pixelFormat  PixelFormat
The pixel format to check.

Return Value

, if the specified pixelFormat is supported on the current operating system; otherwise, .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PixelFormat. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).


If pixelFormat does not represent a valid format (the IsValidFormat method returns ), then this method returns .

This method returns , if a Bitmap can be created with the specified pixelFormat. Even in such case there might be some limitations on the current operating system when using some PixelFormats.


For information about the possible usable PixelFormats on different platforms see the Remarks section of the ConvertPixelFormat extension method.

See Also