Main Page | Modules | Data Structures | File List | Data Fields

Rendering
[Trend]


Data Structures

struct  trd_rectangle_t

Typedefs

typedef trd_rectangle_t trd_rectangle_t
typedef enum HORIZONTAL_ALIGN HORIZONTAL_ALIGN
typedef enum VERTICAL_ALIGN VERTICAL_ALIGN

Enumerations

enum  HORIZONTAL_ALIGN { HA_LEFT, HA_CENTER, HA_RIGHT }
enum  VERTICAL_ALIGN { VA_TOP, VA_MIDDLE, VA_BOTTOM }

Functions

void trd_rectangle_draw (trd_rectangle_t *r, gdImagePtr image, unsigned long color)
void trd_rectangle_fill (trd_rectangle_t *r, gdImagePtr image, unsigned long color)
void trd_render_string (gdImagePtr image, gdFontPtr font, short x1, short y1, short x2, short y2, HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align, short vertical, unsigned long color, const char *f,...)
void trd_render_stringv (gdImagePtr image, gdFontPtr font, short x1, short y1, short x2, short y2, HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align, short vertical, unsigned long color, const char *f, va_list var_args)
gdImagePtr trd_make_message_image (short width, short height, const char *f,...)

Typedef Documentation

typedef enum HORIZONTAL_ALIGN HORIZONTAL_ALIGN
 

Horizontal align enumeration. Things can be at the Left, Center, or Right of a specified rectangle.

typedef struct trd_rectangle_t trd_rectangle_t
 

A rectangle has four corners and is defined by four coordinates, left, right, top, and bottom.

typedef enum VERTICAL_ALIGN VERTICAL_ALIGN
 

Vertical align enumeration. Things can be at the Top, Middle or Bottom of a specified rectangle.


Enumeration Type Documentation

enum HORIZONTAL_ALIGN
 

Horizontal align enumeration. Things can be at the Left, Center, or Right of a specified rectangle.

enum VERTICAL_ALIGN
 

Vertical align enumeration. Things can be at the Top, Middle or Bottom of a specified rectangle.


Function Documentation

gdImagePtr trd_make_message_image short  width,
short  height,
const char *  f,
... 
 

Renders a string to a gd Image.

Parameters:
width Width of the image in pixels.
height Height of the image in pixels.
f String to make a message out of.

void trd_rectangle_draw trd_rectangle_t r,
gdImagePtr  image,
unsigned long  color
 

Draws a rectangle to the given image in the specified color.

Parameters:
r 
image 
color 

void trd_rectangle_fill trd_rectangle_t r,
gdImagePtr  image,
unsigned long  color
 

Draws a rectangle to the given image in the specified color.

Parameters:
r 
image 
color 

void trd_render_string gdImagePtr  image,
gdFontPtr  font,
short  x1,
short  y1,
short  x2,
short  y2,
HORIZONTAL_ALIGN  h_align,
VERTICAL_ALIGN  v_align,
short  vertical,
unsigned long  color,
const char *  f,
... 
 

Renders a string to a gd Image.

Parameters:
image Image to render to.
font Font to use for the text.
x1 X coordinate.
y1 Y coordinate.
x2 X coordinate.
y2 Y coordinate.
h_align Horizontal align.
v_align Vertical align.
vertical Vertical flag.
color Color,
f String.

void trd_render_stringv gdImagePtr  image,
gdFontPtr  font,
short  x1,
short  y1,
short  x2,
short  y2,
HORIZONTAL_ALIGN  h_align,
VERTICAL_ALIGN  v_align,
short  vertical,
unsigned long  color,
const char *  f,
va_list  var_args
 

Renders a string to a gd Image.

Parameters:
image Image to render to.
font Font to use for the text.
x1 X coordinate.
y1 Y coordinate.
x2 X coordinate.
y2 Y coordinate.
h_align Horizontal align.
v_align Vertical align.
vertical Vertical flag.
color Color,
f String.
var_args Variable arguments.


Generated on Wed Apr 28 09:38:38 2004 for State by doxygen 1.3.5