[]
        
(Showing Draft Content)

IPaintCommand

Document Solutions Image Viewer - v8.0.0 / IPaintCommand

Interface: IPaintCommand

Canvas paint command.

Table of contents

Methods

Methods

clone

clone(): any

Clone the current command.

Returns

any


execute

execute(mainCtx, backCtx, options): any

Execute the current command.

Parameters

Name Type Description
mainCtx CanvasRenderingContext2D Main rendering context for new edits.
backCtx CanvasRenderingContext2D Background rendering context, contains original image.
options IPaintExecuteOptions -

Returns

any