extractImageSourceDimensions Function
Extract the dimensions of the jpeg or png data encoded in an ImageSource.
extractImageSourceDimensions(source: ImageSource): Promise<Point2d>
extensions
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
- core/frontend/src/ImageUtil.ts Line 261
Last Updated: 20 June, 2023