ReadonlysizeCanvas dimensions in pixels.
ReadonlylayersLayers ordered from bottom to top.
ReadonlyactiveThe layer that receives canvas-level editing commands.
ReadonlyselectionSelection state and commands.
Resizes the canvas without scaling layer pixels.
New positive pixel dimensions.
Optionalanchor: string | null
Placement anchor for existing content, such as top left, center, or bottom right; defaults to top left.
Rectangle that becomes the new canvas bounds.
Scales the canvas and its layers.
New positive pixel dimensions.
Optionaloptions: ScaleOptions | null
Scaling algorithm options.
Positive target width; height is scaled proportionally.
Positive target height; width is scaled proportionally.
Positive multiplier, where 0.5 is 50 percent.
Trims transparent outer rows and columns.
Horizontal or vertical flip direction.
Clockwise rotation in multiples of 90 degrees.
Flattens visible layers into one layer.
Copies the composited canvas image to the system pasteboard.
Filter names accepted by applyFilter().
Applies a named filter to the active layer.
A supported Pixen filter name.
Optionaloptions: FilterOptions | null
Options specific to the selected filter.
Whether the filter was applied.
A layer belonging to this canvas.
A new layer appended above all existing layers.
Zero-based insertion index.
The new layer, or null for an invalid index.
A layer belonging to this canvas.
Destination index.
Whether it was moved.
Path to an image file.
The inserted layer, or null on failure.
Path to an image file.
Insertion index.
The inserted layer, or null on failure.
Horizontal pixel coordinate.
Vertical pixel coordinate.
The composited color, or null off-canvas.
Horizontal pixel coordinate.
Vertical pixel coordinate.
New color for the active layer pixel.
Color used to fill the active layer.
Makes every canvas pixel fully opaque.
A document or animation frame canvas.