Interface WriteCanvasOptions

interface WriteCanvasOptions {
    dirtyHeight?: number;
    dirtyWidth?: number;
    dirtyX?: number;
    dirtyY?: number;
    dx?: number;
    dy?: number;
    resizeCanvas?: boolean;
}

Properties

dirtyHeight?: number

Default

image.height

dirtyWidth?: number

Default

image.width

dirtyX?: number

Default

0

dirtyY?: number

Default

0

dx?: number

Default

0

dy?: number

Default

0

resizeCanvas?: boolean

If set to true, the canvas element will be resized to fit the image.

Default

true