PixelFormatExtensions Class

KGy SOFT Drawing Libraries Help
Contains extension methods for the PixelFormat type.
Inheritance Hierarchy

SystemObject
  KGySoft.DrawingPixelFormatExtensions

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 7.0.0-preview.2
Syntax

public static class PixelFormatExtensions

The PixelFormatExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberIsSupportedNatively
Gets whether the specified pixelFormat is supported natively on the current operating system.
See the Remarks section for details.
Public methodStatic memberIsValidFormat
Gets whether this PixelFormat instance represents a valid format. The valid format values are the ones, whose name starts with Format.
Public methodStatic memberToBitsPerPixel
Gets the bits per pixel (BPP) value of a PixelFormat value without checking whether pixelFormat represents a valid value.
Public methodStatic memberToKnownPixelFormat
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.
Public methodStatic memberToPixelFormat
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.
Top
See Also

Reference