Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ImageGfx.h File Reference

#include <phStandard.h>
#include <phStdint.h>
#include <ImageDefinitions.h>

Go to the source code of this file.

Classes

struct  phImageSurface_t
struct  phUSize_t
struct  phUPoint_t
struct  phSize_t
struct  phPoint_t
struct  phLine_t
struct  phCircle_t
struct  phRectangle_t
struct  phTriangle_t
struct  phCross_t

Defines

#define phDrawingHollow   (0)
#define phDrawingNoFill   (0)
#define phDrawingFill   (1)

Typedefs

typedef phImageSurface_t phImageSurface
typedef phUSize_t phUSize
typedef phUPoint_t phUPoint
typedef phSize_t phSize
typedef phPoint_t phPoint
typedef phLine_t phLine
typedef phCircle_t phCircle
typedef phRectangle_t phRectangle
typedef phTriangle_t phTriangle
typedef phCross_t phCross
typedef phDrawing_tphDrawing

Functions

void ph_draw_horizline (phImageSurface *s, phColor c, uint8_t transparency, int32_t x1, int32_t x2, int32_t y)
void ph_draw_vertline (phImageSurface *s, phColor c, uint8_t transparency, int32_t y1, int32_t y2, int32_t x)
void ph_drawline_bresenham (phImageSurface *s, phColor c, uint8_t transparency, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
void ph_drawcircle_midpoint (phImageSurface *s, phColor color, uint8_t transparency, int32_t x0, int32_t y0, int32_t radius)
void ph_draw_hollow_rect (phImageSurface *s, phColor c, uint8_t transparency, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2)
void ph_draw_hollow_triangle (phImageSurface *s, phColor c, uint8_t transparency, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t x3, uint32_t y3)
void ph_triangle_fill (phImageSurface *s, phColor c, uint8_t transparency, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3)
phImageSurface phImageSurface_new (uint32_t w, uint32_t h, uint32_t f, uint8_t *p)
phSize phSize_new (int32_t w, int32_t h)
phPoint phPoint_new (int32_t x, int32_t y)
phLine phLine_new (int32_t x1, int32_t y1, int32_t x2, int32_t y2)
phCircle phCircle_new (int32_t x, int32_t y, int32_t r)
phRectangle phRectangle_new (int32_t x, int32_t y, int32_t w, int32_t h)
phTriangle phTriangle_new (int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3)
phCross phCross_new (int32_t x, int32_t y, int32_t xs, int32_t ys)
void ph_draw_point (phImageSurface *s, phPoint p, phColor color, uint8_t size, uint8_t transparency)
void ph_draw_line (phImageSurface *s, phLine l, phColor color, uint8_t size, uint8_t transparency)
void ph_draw_circle (phImageSurface *s, phCircle c, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
void ph_draw_rectangle (phImageSurface *s, phRectangle r, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
void ph_draw_triangle (phImageSurface *s, phTriangle t, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
void ph_draw_cross (phImageSurface *s, phCross x, phColor color, uint8_t size, uint8_t transparency)
int phPoint_print (int fd, phPoint p)
int phLine_print (int fd, phLine l)
int phCircle_print (int fd, phCircle c)
int phRectangle_print (int fd, phRectangle r)
int phTriangle_print (int fd, phTriangle t)
int phCross_print (int fd, phCross c)
int phDrawing_alloc (phDrawing *d)
void phDrawing_free (phDrawing *d)
int phDrawing_copy (phDrawing d, phDrawing copy)
void phDrawing_draw (phDrawing d, phImageSurface *s)
void phDrawing_clear (phDrawing d)
void phDrawing_clearPoints (phDrawing d)
void phDrawing_clearLines (phDrawing d)
void phDrawing_clearCircles (phDrawing d)
void phDrawing_clearRectangles (phDrawing d)
void phDrawing_clearTriangles (phDrawing d)
void phDrawing_clearCrosses (phDrawing d)
int phDrawing_addPoint (phDrawing d, phPoint p, phColor color, uint8_t size, uint8_t transparency)
int phDrawing_addLine (phDrawing d, phLine l, phColor color, uint8_t size, uint8_t transparency)
int phDrawing_addCircle (phDrawing d, phCircle c, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
int phDrawing_addRectangle (phDrawing d, phRectangle r, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
int phDrawing_addTriangle (phDrawing d, phTriangle t, phColor color, uint8_t size, uint8_t fill, uint8_t transparency)
int phDrawing_addCross (phDrawing d, phCross x, phColor color, uint8_t size, uint8_t transparency)




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:12 2007 for phission by  doxygen 1.4.4