Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResizeCanvasArguments

Argument configuration for calling PngImage.resizeCanvas.

Hierarchy

  • ResizeCanvasArguments

Index

Properties

Optional clip

clip: Rect

Specify this to clip the image in addition to resizing the canvas. This will remove parts of the image by only using the specified rectangle. In combination with reducing the dimensions this can be used to crop the image.

Optional dimensions

dimensions: XY

The dimensions the new image should have.

Optional fillColor

fillColor: ColorAny

When enlarging the canvas an empty are will be created. It will be filled with this color.

Optional offset

offset: XY

An optional offset to offset the old image with. Will be applied to the top-left of the image. This will make the clipped image moved to the right and down by the specified amount of pixels and create a border on the top and to the left.

Generated using TypeDoc