Enum PixelConversionModifiers
- Namespace
- SixLabors.ImageSharp.PixelFormats
- Assembly
- SixLabors.ImageSharp.dll
Specifies vector representation transformations applied by ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>, PixelConversionModifiers) and FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>, PixelConversionModifiers) during bulk pixel conversion.
[Flags]
public enum PixelConversionModifiers
Fields
None = 0Preserves the pixel format's native numeric range and alpha representation.
Premultiply = 2Requests associated alpha for the vector representation. When combined with UnPremultiply, associated alpha takes precedence.
SRgbCompand = 4Expands sRGB color components when converting pixels to vectors and compresses linear RGB color components when converting vectors to pixels.
Scale = 1Requests the scaled numeric range represented by ToScaledVector4() and FromScaledVector4(Vector4).
UnPremultiply = 8Requests unassociated alpha for the vector representation unless Premultiply is also specified.