Board  0.9.4
Functions | Variables
line_segment.cpp File Reference

Sample drawing using the board library. More...

#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
#include "Board.h"

Functions

void drawPixel (Board &board, int x, int y)
 
void drawLine (Board &board, float x1, float y1, float x2, float 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 http://foureys.users.greyc.fr