ImageDrawRectangle method
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,
),
);