Board 0.9.6
Functions | Variables
line_segment.cpp File Reference

Sample drawing using the board library. More...

#include <Board.h>
#include <cmath>

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
 

Detailed Description

Sample drawing using the board library.

Author
Sebastien Fourey (GREYC)

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

Function Documentation

◆ drawLine()

void drawLine ( Board board,
double  x1,
double  y1,
double  x2,
double  y2 
)

◆ drawPixel()

void drawPixel ( Board board,
int  x,
int  y 
)

◆ main()

int main ( int  ,
char *  [] 
)

Variable Documentation

◆ IMAGE_HALF_SIDE

const int IMAGE_HALF_SIDE = 15
Examples
examples/line_segment.cpp.

Referenced by main().

◆ PIXEL_WIDTH

const int PIXEL_WIDTH = 30
Examples
examples/line_segment.cpp.

Referenced by drawLine(), drawPixel(), and main().