imageResizeCanvas function

void imageResizeCanvas(
  1. Image image,
  2. int newWidth,
  3. int newHeight,
  4. int offsetX,
  5. int offsetY,
  6. Color fill,
)

Resize canvas and fill with color.

Implementation

void imageResizeCanvas(
  Image image,
  int newWidth,
  int newHeight,
  int offsetX,
  int offsetY,
  Color fill,
) {
  return library.ImageResizeCanvas(
    image.pointer,
    newWidth,
    newHeight,
    offsetX,
    offsetY,
    fill.ref,
  );
}