Skip to content

ImageBitmap

Types

t

type t = WebAPI.CanvasTypes.imageBitmap = private {
width: int,
height: int,
}

Record fields

width
int

Returns the intrinsic width of the image, in CSS pixels. Read more on MDN

height
int

Returns the intrinsic height of the image, in CSS pixels. Read more on MDN

Values

close

Releases imageBitmap's underlying bitmap data. Read more on MDN

let close: WebAPI.CanvasTypes.imageBitmap => unit

Parameters

Return type

unit