dodo::graphics::draw Class Reference
provides simple image drawing More...
#include <graphicsDraw.h>
Static Public Member Functions | |
| static void | circle (graphics::image &image, const graphics::point ¢er, unsigned long radius, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth=1) |
| draw circle | |
| static void | rectangle (graphics::image &image, const graphics::point &tl, const graphics::point &br, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth=1) |
| draw rectangle | |
| static void | text (graphics::image &image, const graphics::point &position, const dodoString &text, const dodoString &font, unsigned short fontWidth, const __color__ &fillColor=color::black, const __color__ &borderColor=color::black, unsigned short borderWidth=1, double angle=0) |
| draw text | |
| static void | image (graphics::image &image, const graphics::point &position, const graphics::image &im, double angle=0) |
| put image | |
| static void | line (graphics::image &image, const dodoArray< graphics::point > &points, const __color__ &lineColor, unsigned short lineWidth=1) |
| draw line | |
| static void | point (graphics::image &image, const graphics::point &position, const __color__ &pointColor, unsigned short pointWidth=1) |
| draw dot | |
Static Protected Member Functions | |
| static void | primitive (graphics::image &image, char *description, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth) |
| draw primitive by description | |
Detailed Description
provides simple image drawing
- Note:
- for (x;y) == (0;0) it's left upper corner
Definition at line 67 of file graphicsDraw.h.
Member Function Documentation
| static void dodo::graphics::draw::circle | ( | graphics::image & | image, | |
| const graphics::point & | center, | |||
| unsigned long | radius, | |||
| const __color__ & | fillColor, | |||
| const __color__ & | borderColor, | |||
| unsigned short | borderWidth = 1 | |||
| ) | [static] |
| static void dodo::graphics::draw::image | ( | graphics::image & | image, | |
| const graphics::point & | position, | |||
| const graphics::image & | im, | |||
| double | angle = 0 | |||
| ) | [static] |
| static void dodo::graphics::draw::line | ( | graphics::image & | image, | |
| const dodoArray< graphics::point > & | points, | |||
| const __color__ & | lineColor, | |||
| unsigned short | lineWidth = 1 | |||
| ) | [static] |
| static void dodo::graphics::draw::point | ( | graphics::image & | image, | |
| const graphics::point & | position, | |||
| const __color__ & | pointColor, | |||
| unsigned short | pointWidth = 1 | |||
| ) | [static] |
| static void dodo::graphics::draw::primitive | ( | graphics::image & | image, | |
| char * | description, | |||
| const __color__ & | fillColor, | |||
| const __color__ & | borderColor, | |||
| unsigned short | borderWidth | |||
| ) | [static, protected] |
| static void dodo::graphics::draw::rectangle | ( | graphics::image & | image, | |
| const graphics::point & | tl, | |||
| const graphics::point & | br, | |||
| const __color__ & | fillColor, | |||
| const __color__ & | borderColor, | |||
| unsigned short | borderWidth = 1 | |||
| ) | [static] |
draw rectangle
- Parameters:
-
image defines image on which perform drawing tl defines x and y position of rectangle top left corner br defines x and y position of rectangle bottom right corner fillColor defines rectangle fill color borderColor defines rectangle border color borderWidth defines the width of the border of the rectangle
| static void dodo::graphics::draw::text | ( | graphics::image & | image, | |
| const graphics::point & | position, | |||
| const dodoString & | text, | |||
| const dodoString & | font, | |||
| unsigned short | fontWidth, | |||
| const __color__ & | fillColor = color::black, |
|||
| const __color__ & | borderColor = color::black, |
|||
| unsigned short | borderWidth = 1, |
|||
| double | angle = 0 | |||
| ) | [static] |
draw text
- Parameters:
-
image defines image on which perform drawing position defines x and y position of text top left corner text defines text to render font defines font of the text fontWidth defines font width fillColor defines text fill color borderColor defines text border color borderWidth defines the width of the border of the text angle defines the deflection angle in degrees of the text relatively to horison
The documentation for this class was generated from the following file:
- include/libdodo/graphicsDraw.h
Generated on Sun Nov 8 03:44:49 2009 for libdodo by
1.6.1

