Search in sources :

Example 1 with Line

use of jp.sourceforge.qrcode.geom.Line in project qrcode by yanbe.

the class JMFCanvas method drawCross.

public void drawCross(Point point, int color) {
    int x = point.getX();
    int y = point.getY();
    Line[] lines = { new Line(x - 5, y - 1, x + 5, y - 1), new Line(x - 1, y - 5, x - 1, y + 5), new Line(x - 5, y + 1, x + 5, y + 1), new Line(x + 1, y - 5, x + 1, y + 5), new Line(x - 5, y, x + 5, y), new Line(x, y - 5, x, y + 5) };
    drawLines(lines, color);
}
Also used : Line(jp.sourceforge.qrcode.geom.Line) Point(jp.sourceforge.qrcode.geom.Point)

Example 2 with Line

use of jp.sourceforge.qrcode.geom.Line in project qrcode by yanbe.

the class J2SEDebugCanvas method drawCross.

public void drawCross(Point point, int color) {
    int x = point.getX();
    int y = point.getY();
    Line[] lines = { new Line(x - 5, y, x + 5, y), new Line(x, y - 5, x, y + 5) };
    drawLines(lines, color);
}
Also used : Line(jp.sourceforge.qrcode.geom.Line) Point(jp.sourceforge.qrcode.geom.Point)

Aggregations

Line (jp.sourceforge.qrcode.geom.Line)2 Point (jp.sourceforge.qrcode.geom.Point)2