PixelFormatExtensions Class

Contains extension methods for the PixelFormat type.

Definition

Namespace: KGySoft.Drawing.Wpf
Assembly: KGySoft.Drawing.Wpf (in KGySoft.Drawing.Wpf.dll) Version: 8.1.0
C#
public static class PixelFormatExtensions
Inheritance
Object    PixelFormatExtensions

Methods

GetInfo Gets a PixelFormatInfo for this pixelFormat.
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 represents an indexed format.
ToKnownPixelFormat Converts this PixelFormat to a compatible KnownPixelFormat value.
ToPixelFormat Converts a KnownPixelFormat to the closest PixelFormat.

See Also