imageDrawRectangle function

void imageDrawRectangle(
  1. Image dst,
  2. int posX,
  3. int posY,
  4. int width,
  5. int height,
  6. Color color,
)

Draw rectangle within an image.

Implementation

void imageDrawRectangle(
  Image dst,
  int posX,
  int posY,
  int width,
  int height,
  Color color,
) {
  return library.ImageDrawRectangle(
    dst.pointer,
    posX,
    posY,
    width,
    height,
    color.ref,
  );
}