PixelFormatExtensionsIsSupportedNatively Method

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

Definition

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

Parameters

pixelFormat  PixelFormat
The pixel format to check.

Return Value

Boolean
, 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).

Remarks

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.

  Note

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

See Also