public static class PixelFormatExtensions
<ExtensionAttribute>
Public NotInheritable Class PixelFormatExtensions
[ExtensionAttribute]
public ref class PixelFormatExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type PixelFormatExtensions = class end
GetInfo | Gets a PixelFormatInfo for this pixelFormat. Please note that this may return a different result than calling ToKnownPixelFormat().GetInfo() because the IsCustomFormat in the result of this method can be if the actual pixel layout of the specified pixelFormat differs from the layout of its KnownPixelFormat counterpart with the same name. |
GetMatchingQuantizer | Gets a PredefinedColorsQuantizer instance that fits for the specified pixelFormat. For indexed formats a default palette will be used. |
IsIndexed | Gets whether this PixelFormat instance represents an indexed format without checking whether pixelFormat represents a valid value. |
IsSupportedNatively | Gets whether the specified pixelFormat is supported natively on the current operating system. |
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. |