26 lines
537 B
JavaScript
26 lines
537 B
JavaScript
|
|
/**
|
||
|
|
* Image Bitmap.
|
||
|
|
*
|
||
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap
|
||
|
|
*/
|
||
|
|
export default class ImageBitmap {
|
||
|
|
height;
|
||
|
|
width;
|
||
|
|
/**
|
||
|
|
* Constructor.
|
||
|
|
*
|
||
|
|
* @param width Width.
|
||
|
|
* @param height Height.
|
||
|
|
*/
|
||
|
|
constructor(width, height) {
|
||
|
|
this.width = width;
|
||
|
|
this.height = height;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Disposes of all graphical resources associated with an ImageBitmap.
|
||
|
|
*/
|
||
|
|
close() {
|
||
|
|
// TODO: Not implemented.
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=ImageBitmap.js.map
|