Contains extension methods for the PixelFormat type.
Inheritance Hierarchy
KGySoft.DrawingPixelFormatExtensions
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 7.0.0-preview.2
Syntax
The PixelFormatExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | IsSupportedNatively |
Gets whether the specified pixelFormat is supported natively on the current operating system.
See the Remarks section for details. |
![]() ![]() | IsValidFormat |
Gets whether this PixelFormat instance represents a valid format.
The valid format values are the ones, whose name starts with Format.
|
![]() ![]() | ToBitsPerPixel |
Gets the bits per pixel (BPP) value of a PixelFormat value without checking
whether pixelFormat represents a valid value.
|
![]() ![]() | ToKnownPixelFormat |
Converts a PixelFormat to the closest KnownPixelFormat. Please note that some formats with identical names may represent different actual pixel layout.
See the Remarks section of the ImageExtensions.ConvertPixelFormat method for details about the differences on Windows and Unix platforms. |
![]() ![]() | ToPixelFormat |
Converts a KnownPixelFormat to the closest PixelFormat. Please note that some formats with identical names may represent different actual pixel layout.
See the Remarks section of the ImageExtensions.ConvertPixelFormat method for details about the differences on Windows and Unix platforms. |
See Also