ImageData
Types
t
type t = WebAPI.DOM.imageData = private { width: int, height: int, data: Uint8ClampedArray.t, colorSpace: WebAPI.DOM.predefinedColorSpace,}Record fields
width
int
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
height
int
Returns the actual dimensions of the data in the ImageData object, in pixels. Read more on MDN
data
Uint8ClampedArray.t
Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. Read more on MDN
Values
make
let make: ( ~sw: int, ~sh: int, ~settings: WebAPI.DOM.imageDataSettings=?,) => WebAPI.DOM.imageDatamakeWithData
let makeWithData: ( ~data: Uint8ClampedArray.t, ~sw: int, ~sh: int=?, ~settings: WebAPI.DOM.imageDataSettings=?,) => WebAPI.DOM.imageData