imageDrawLine function

void imageDrawLine(
  1. Image dst,
  2. int startPosX,
  3. int startPosY,
  4. int endPosX,
  5. int endPosY,
  6. Color color,
)

Draw line within an image.

Implementation

void imageDrawLine(
  Image dst,
  int startPosX,
  int startPosY,
  int endPosX,
  int endPosY,
  Color color,
) {
  return library.ImageDrawLine(
    dst.pointer,
    startPosX,
    startPosY,
    endPosX,
    endPosY,
    color.ref,
  );
}