Table of Contents

Namespace SixLabors.ImageSharp.PixelFormats

Classes

AssociatedAlphaPixelOperations<TPixel>

Provides bulk operations for pixel formats that store associated alpha.

PixelBlender<TPixel>

Abstract base class for calling pixel composition functions

PixelOperations<TPixel>

Provides bulk conversion operations for pixel buffers of type TPixel.

Structs

A8

Packed pixel type containing a single 8-bit normalized alpha value.

Abgr32

Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in alpha, red, green, and blue order (least significant to most significant byte).

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Abgr32P

Packed pixel type containing alpha and associated blue, green, and red components as 8-bit unsigned normalized values. Components are stored in alpha, blue, green, and red order from least to most significant byte.

Argb32

Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in alpha, red, green, and blue order (least significant to most significant byte).

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Argb32P

Packed pixel type containing alpha and associated red, green, and blue components as 8-bit unsigned normalized values. Components are stored in alpha, red, green, and blue order from least to most significant byte.

Bgr24

Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in blue, green, red order (least significant to most significant byte).

Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.

Bgr565

Packed pixel type containing three unsigned normalized values. The x and z components use 5 bits, and the y component uses 6 bits.

Bgra32

Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in blue, green, red, and alpha order (least significant to most significant byte). The format is binary compatible with System.Drawing.Imaging.PixelFormat.Format32bppArgb

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Bgra32P

Packed pixel type containing associated blue, green, red, and alpha components as 8-bit unsigned normalized values. Components are stored in blue, green, red, and alpha order from least to most significant byte.

Bgra4444

Packed pixel type containing four unsigned normalized values using 4 bits per component.

Bgra5551

Packed pixel type containing four unsigned normalized values. The x, y, and z components use 5 bits, and the w component uses 1 bit.

Byte4

Packed pixel type containing four 8-bit unsigned integer values.

HalfSingle

Packed pixel type containing a single IEEE 754 binary16 floating-point value.

HalfVector2

Packed pixel type containing two IEEE 754 binary16 floating-point values.

HalfVector4

Packed pixel type containing four IEEE 754 binary16 floating-point values.

HalfVector4P

Packed pixel type containing four associated 16-bit floating-point values.

L16

Packed pixel type containing a single 16-bit normalized luminance value.

Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.

L8

Packed pixel type containing a single 8-bit normalized luminance value.

Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.

La16

Packed pixel type containing two 8-bit normalized values representing luminance and alpha.

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

La32

Packed pixel type containing two 16-bit normalized values representing luminance and alpha.

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

NormalizedByte2

Packed pixel type containing two 8-bit signed normalized values.

NormalizedByte4

Packed pixel type containing four 8-bit signed normalized values.

NormalizedByte4P

Packed pixel type containing four associated 8-bit signed normalized values ranging from -1 to 1.

NormalizedShort2

Packed pixel type containing two 16-bit signed normalized values.

NormalizedShort4

Packed pixel type containing four 16-bit signed normalized values.

PixelComponentInfo

Represents pixel component information within a pixel format.

PixelTypeInfo

Contains information about the pixels that make up an images visual data.

Rg32

Packed pixel type containing two 16-bit unsigned normalized values.

Rgb24

Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in red, green, blue order (least significant to most significant byte).

Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.

Rgb48

Packed pixel type containing three 16-bit unsigned normalized values ranging from 0 to 65535.

Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.

Rgb96

Pixel type containing three 32-bit unsigned normalized values ranging from 0 to 4294967295. The color components are stored in red, green, blue.

Ranges from [0, 0, 0] to [1, 1, 1] in vector form.

Rgba1010102

Packed pixel type containing four unsigned normalized values. The x, y and z components use 10 bits, and the w component uses 2 bits.

Rgba128

Pixel type containing four 32-bit unsigned normalized values ranging from 0 to 4294967295. The color components are stored in red, green, blue and alpha.

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Rgba32

Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. The color components are stored in red, green, blue, and alpha order (least significant to most significant byte).

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Rgba32P

Packed pixel type containing associated red, green, blue, and alpha components as 8-bit unsigned normalized values. Components are stored in red, green, blue, and alpha order from least to most significant byte.

Rgba64

Packed pixel type containing four 16-bit unsigned normalized values.

RgbaHalf

Packed pixel type containing four 16-bit floating-point values typically ranging from 0 to 1. The color components are stored in red, green, blue, and alpha order.

RgbaHalfP

Packed pixel type containing four associated 16-bit floating-point values typically ranging from 0 to 1. The color components are stored in red, green, blue, and alpha order.

RgbaVector

Unpacked pixel type containing four 32-bit floating-point values typically ranging from 0 to 1. The color components are stored in red, green, blue, and alpha order.

Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.

Short2

Packed pixel type containing two 16-bit signed integer values.

Short4

Packed pixel type containing four 16-bit signed integer values.

Interfaces

IPackedVector<TPacked>

This interface exists for ensuring signature compatibility to MonoGame and XNA packed color types. https://msdn.microsoft.com/en-us/library/bb197661.aspx

IPixel

A base interface for all pixels, defining the mandatory operations to be implemented by a pixel type.

IPixel<TSelf>

An interface that represents a generic pixel type. The naming convention of each pixel format is to order the color components from least significant to most significant, reading from left to right. For example in the Rgba32 pixel format the R component is the least significant byte, and the A component is the most significant.

Enums

PixelAlphaCompositionMode

Enumerates the various alpha composition modes.

PixelAlphaRepresentation

Provides enumeration of the alpha value transparency behavior of a pixel format.

PixelColorBlendingMode

Enumerates the various color blending modes.

PixelColorType

Represents the color type and format of a pixel.

PixelComponentBitDepth

Provides enumeration of the precision in bits of individual components within a pixel format.

PixelConversionModifiers

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.