MLPixelFormat Enum

Definition

Specifies the format of the color data for each pixel in the image.

C#
public enum MLPixelFormat
Inheritance
MLPixelFormat

Fields

Name Value Description
Unknown 0

The pixel format is unknown.

Bgra32 1

Specifies that the format is 32 bits per pixel; 8 bits each are used for the blue, green, red, and alpha components. The color components are stored in blue, green, red, and alpha order

Rgba32 2

Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green, blue, and alpha components. The color components are stored in red, green, blue, and alpha order

Applies to

Product Versions
ML.NET 2.0.0, 3.0.0, Preview, 4.0.0