[]
Document Solutions Image Viewer - v8.0.0 / IPaintObject
Paint object to be drawn to the canvas.
▸ draw(destCtx
, mainCtx
, backCtx
, params?
): any
Draw object to the canvas.
Name | Type |
---|---|
destCtx |
CanvasRenderingContext2D |
mainCtx |
CanvasRenderingContext2D |
backCtx |
CanvasRenderingContext2D |
params? |
PaintObjectParameters |
any
▸ getContentSize(ctx
): Size
Gets object contents rectangle size.
Name | Type |
---|---|
ctx |
CanvasRenderingContext2D |
▸ getProperty(propertyName
): any
Get paint object property, e.g. fontSize, fontName, text and so on.
Name | Type |
---|---|
propertyName |
PaintObjectPropertyName |
any
▸ setProperty(propertyName
, value
): boolean
Set paint object property, e.g. fontSize, fontName, text and so on.
Name | Type |
---|---|
propertyName |
PaintObjectPropertyName |
value |
any |
boolean