ImageDataPixelFormat Enum
The formats of the pixels of an ImageData (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagedatapixelformat).
public enum ImageDataPixelFormatFields
| Name | Value | Description |
|---|---|---|
RgbaUnorm8 | 0 | 4 bytes per pixel (R, G, B, A), in a Uint8ClampedArray. |
RgbaFloat16 | 1 | 4 half-precision floats per pixel (R, G, B, A), in a Float16Array; the color channels can include values outside of [0, 1]. |