[]
Document Solutions Image Viewer - v7.2.0 / IImageLayer
Image layer canvas.
• get
name(): string
Image layer name.
string
• set
name(name
): void
Image layer name.
Name | Type |
---|---|
name |
string |
void
• get
mainCanvas(): HTMLCanvasElement
Canvas object to paint.
HTMLCanvasElement
• get
backCanvas(): HTMLCanvasElement
Canvas object to paint.
HTMLCanvasElement
• get
mainCtx(): CanvasRenderingContext2D
Main 2D rendering context.
CanvasRenderingContext2D
• get
backCtx(): CanvasRenderingContext2D
Background 2D rendering context.
CanvasRenderingContext2D
• get
paintObjects(): IPaintObject
[]
The objects in this array are drawn to the canvas.
▸ drawObjects(): any
Call this method to draw the paint objects specified in the paintObjects array onto the canvas.
any
▸ executeTempPaintCommand(cmd
): any
Run a temporary paint command on a separate temporary canvas layer. This method should create and display the temporary canvas layer if it doesn't exist.
Name | Type |
---|---|
cmd |
IPaintCommand |
any
▸ getTempPaintCommands(): IPaintCommand
[]
Get all temporary paint commands.
▸ clearTempPaintCommands(): any
Clear all temporary paint commands, clear and dispose the temporary canvas layer.
any