KnownPixelFormatExtensions Class

Contains extension methods for the KnownPixelFormat type.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.3
C#
public static class KnownPixelFormatExtensions
Inheritance
Object    KnownPixelFormatExtensions

Methods

GetInfo Gets a PixelFormatInfo for this pixelFormat.
HasAlpha Gets whether this KnownPixelFormat instance represents a format with alpha (transparency) without checking whether pixelFormat represents a valid value.
IsIndexed Gets whether this KnownPixelFormat instance represents an indexed format without checking whether pixelFormat represents a valid value.
IsValidFormat Gets whether this KnownPixelFormat instance represents a valid format. The valid format values are the named ones, exception with the default Undefined value.
ToBitsPerPixel Gets the bits per pixel (BPP) value of a KnownPixelFormat value without checking whether pixelFormat represents a valid value.

See Also