ImageDrawLine method

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

Draw line within an image

Implementation

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