ImageDrawRectangle method

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

Draw rectangle within an image

Implementation

void ImageDrawRectangle(
  Image dst,
  num posX,
  num posY,
  num width,
  num height,
  Color color,
) => run(
  () => _debugLabels.ImageDrawRectangle(dst, posX, posY, width, height, color),
  () => _flat.ImageDrawRectangle(
    Image$.Ref1(dst),
    posX.toInt(),
    posY.toInt(),
    width.toInt(),
    height.toInt(),
    color,
  ),
);