Class ImageContainer
Constructors
(constructor)(onLoadedDelegate)
Constructs a new instance of the ImageContainer class
Declaration
constructor(onLoadedDelegate: () => void);
Parameters
| Type |
Name |
Description |
| () => void |
onLoadedDelegate |
|
Properties
canvas
Declaration
get canvas(): HTMLCanvasElement;
Property Value
| Type |
Description |
| HTMLCanvasElement |
|
image
Declaration
get image(): HTMLImageElement;
Property Value
| Type |
Description |
| HTMLImageElement |
|
isLoaded
Declaration
get isLoaded(): boolean;
set isLoaded(value: boolean);
Property Value
isLoading
Declaration
get isLoading(): boolean;
set isLoading(value: boolean);
Property Value
source
Declaration
Property Value
Methods
clear()
Declaration
Returns
dispose()
Declaration
Returns
updateCanvas(canvas)
Declaration
updateCanvas(canvas: HTMLCanvasElement): void;
Parameters
| Type |
Name |
Description |
| HTMLCanvasElement |
canvas |
|
Returns
updateUrl(url)
Declaration
updateUrl(url: string): void;
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns