Interface IPixel
- Namespace
- SixLabors.ImageSharp.PixelFormats
- Assembly
- SixLabors.ImageSharp.dll
A base interface for all pixels, defining the mandatory operations to be implemented by a pixel type.
public interface IPixel
Methods
GetPixelTypeInfo()
Gets the pixel type information.
public static abstract PixelTypeInfo GetPixelTypeInfo()
Returns
ToRgba32()
Convert the pixel instance into Rgba32 representation.
Rgba32 ToRgba32()
Returns
ToScaledVector4()
Expands the pixel into a generic ("scaled") Vector4 representation
with values scaled and clamped between
Vector4 ToScaledVector4()
Returns
ToVector4()
Expands the pixel into a Vector4 which is specific to the current pixel type. The vector components are typically expanded in least to greatest significance order.
Vector4 ToVector4()