ImageDrawLine method

  1. @override
void ImageDrawLine(
  1. StructPointer<Image> dst,
  2. int startPosX,
  3. int startPosY,
  4. int endPosX,
  5. int endPosY,
  6. Color color,
)
override

Draw line within an image

Implementation

@override
void ImageDrawLine(
  StructPointer<Image> dst,
  int startPosX,
  int startPosY,
  int endPosX,
  int endPosY,
  Color color,
) => _ffi.ImageDrawLine(
  dst.asNativePointer(),
  startPosX,
  startPosY,
  endPosX,
  endPosY,
  Color$.Ref1(color).asNativePointer<ColorC>().ref,
);