C2d.Image_dataImage data objects
The type for ImageData objects.
val create : ?data:Brr.Tarray.uint8_clamped -> w:int -> h:int -> unit -> tcreate ~data ~w ~h () is the image data data for an image of width w and height h. If data is unspecified it is created as a transparent black rectangle. Raises if data is specified and its length is not 4 * w * h.
val w : t -> intw d is the image data width.
val h : t -> inth d is the image data height.
val data : t -> Brr.Tarray.uint8_clampeddata d is the image data of size 4 * w d * h d.