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.
The dimensions the new image should have.
When enlarging the canvas an empty are will be created. It will be filled with this color.
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
Argument configuration for calling
PngImage.resizeCanvas
.