paintScene Function
Public function for paintScene.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
ES module import: import { paintScene } from '@txtextcontrol/tx-sheet-control';.
Syntax
paintScene(drawingContext, scene, images)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
drawingContext | CanvasRenderingContext2D | No | Value matching drawingContext's declared type and the owning object's validation rules. |
scene | PageScene | No | Value matching scene's declared type and the owning object's validation rules. |
images | Map<string, CanvasImageSource> | undefined | Yes | Value matching images's declared type and the owning object's validation rules. |
Return Value
void.
Examples
Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.
import { paintScene } from '@txtextcontrol/tx-sheet-control';
function usePaintScene(drawingContext) {
const result = paintScene(drawingContext, { width: 640, height: 360, number: 2, commands: [] });
console.log(result);
}