Board 0.9.6
|
Sample drawing using the board library. More...
Functions | |
void | drawPixel (Board &board, int x, int y) |
void | drawLine (Board &board, double x1, double y1, double x2, double y2) |
int | main (int, char *[]) |
Variables | |
const int | PIXEL_WIDTH = 30 |
const int | IMAGE_HALF_SIDE = 15 |
Sample drawing using the board library.
This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey https://fourey.users.greyc.fr
void drawLine | ( | Board & | board, |
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
References LibBoard::Board::drawArrow(), drawPixel(), LibBoard::Board::fillCircle(), PIXEL_WIDTH, and LibBoard::Board::setPenColorRGBi().
Referenced by main().
void drawPixel | ( | Board & | board, |
int | x, | ||
int | y | ||
) |
References LibBoard::Board::drawRectangle(), and PIXEL_WIDTH.
Referenced by drawLine().
int main | ( | int | , |
char * | [] | ||
) |
References drawLine(), LibBoard::Board::drawLine(), IMAGE_HALF_SIDE, PIXEL_WIDTH, LibBoard::RoundCap, LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), LibBoard::Shape::scaleToWidth(), LibBoard::Board::setLineCap(), LibBoard::Board::setLineWidth(), LibBoard::Board::setPenColorRGBi(), and LibBoard::UseLineWidth.
const int IMAGE_HALF_SIDE = 15 |
Referenced by main().
const int PIXEL_WIDTH = 30 |
Referenced by drawLine(), drawPixel(), and main().