mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-09 22:37:47 +02:00
* Add width & height to TJSImageBitmap
This commit is contained in:
parent
12a9d92773
commit
a8f6799748
@ -1765,9 +1765,16 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
{ TJSImageBitmap }
|
||||||
|
|
||||||
TJSImageBitmap = class external name 'ImageBitmap' (TJSObject)
|
TJSImageBitmap = class external name 'ImageBitmap' (TJSObject)
|
||||||
|
private
|
||||||
|
FHeight: cardinal; external name 'height';
|
||||||
|
FWidth: cardinal; external name 'width';
|
||||||
public
|
public
|
||||||
procedure close();
|
procedure close();
|
||||||
|
property width : cardinal read FWidth;
|
||||||
|
property height : cardinal read FHeight;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TJSOffscreenCanvasRenderingContext2D = class;
|
TJSOffscreenCanvasRenderingContext2D = class;
|
||||||
|
Loading…
Reference in New Issue
Block a user