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 - 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: 08 January, 2020