@express-document-sdk / BitmapImage
Class: BitmapImage
Represents a bitmap image resource. Use Editor.loadBitmapImage to create a BitmapImage, and then Editor.createImageContainer to display it in the document by creating a MediaContainerNode structure.
Accessors
height
• get height(): number
Original height of the bitmap in pixels.
Returns
number
width
• get width(): number
Original width of the bitmap in pixels.
Returns
number
Methods
data()
• data(): Promise<Blob>
IMPORTANT: This is currently experimental only and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the experimentalApis flag to true in the requirements section of the manifest.json.
Fetches the bitmap data as a Blob. This will wait for the bitmap to be available if necessary.
Returns
Promise<Blob>
