drawLine method

void drawLine(
  1. XVPoint p1,
  2. XVPoint p2,
  3. XVColor color
)

Draws a line using Bresenham's algorithm.

Parameters:

  • p1: The starting point of the line.
  • p2: The ending point of the line.
  • color: The color of the line.

Implementation

void drawLine(XVPoint p1, XVPoint p2, XVColor color) {
  DrawingProcessor.drawLine(this, p1, p2, color);
}