ImageDrawRectangle method

  1. @override
void ImageDrawRectangle(
  1. StructPointer<ImageD> dst,
  2. int posX,
  3. int posY,
  4. int width,
  5. int height,
  6. ColorD color,
)
override

Draw rectangle within an image

Implementation

@override
void ImageDrawRectangle(
  StructPointer<ImageD> dst,
  int posX,
  int posY,
  int width,
  int height,
  ColorD color,
) => _ffi.ImageDrawRectangle(
  dst.asNativePointer(),
  posX,
  posY,
  width,
  height,
  $.Color$.Ref1(color).asNativePointer<ColorC>().ref,
);