extractImageSourceDimensions Function

Extract the dimensions of the jpeg or png data encoded in an ImageSource.

extractImageSourceDimensions(source: ImageSource): Promise<Point2d>

Parameter Type Description
source ImageSource The ImageSource containing the binary jpeg or png data.

Returns - Promise<Point2d>

a Promise resolving to a Point2d of which x corresponds to the integer width of the uncompressed bitmap and y to the height.

Defined in

Last Updated: 11 June, 2024