Libchart

Simple PHP chart drawing library
  • Introduction
  • Download
  • Sample Code
  • Reference API
  • Links
  • Main Page
  • Classes
  • Directories
  • Class List
  • Class Members

Text Class Reference

List of all members.

Public Member Functions

 Text ()
 printText ($img, $px, $py, $color, $text, $fontFileName, $align=0)
 printCentered ($img, $py, $color, $text, $fontFileName)
 printDiagonal ($img, $px, $py, $color, $text)

Public Attributes

 $HORIZONTAL_LEFT_ALIGN = 1
 $HORIZONTAL_CENTER_ALIGN = 2
 $HORIZONTAL_RIGHT_ALIGN = 4
 $VERTICAL_TOP_ALIGN = 8
 $VERTICAL_CENTER_ALIGN = 16
 $VERTICAL_BOTTOM_ALIGN = 32

Detailed Description

Text drawing helper

Author:
Jean-Marc Trémeaux (jm.tremeaux at gmail.com)


Member Function Documentation

Text::Text (  ) 

Creates a new text drawing helper.

Text::printText ( $  img,
$  px,
$  py,
$  color,
$  text,
$  fontFileName,
$  align = 0 
)

Print text.

Parameters:
Image GD image
integer text coordinate (x)
integer text coordinate (y)
Color text color
string text value
string font file name
bitfield text alignment

Text::printCentered ( $  img,
$  py,
$  color,
$  text,
$  fontFileName 
)

Print text centered horizontally on the image.

Parameters:
Image GD image
integer text coordinate (y)
Color text color
string text value
string font file name

Text::printDiagonal ( $  img,
$  px,
$  py,
$  color,
$  text 
)

Print text in diagonal.

Parameters:
Image GD image
integer text coordinate (x)
integer text coordinate (y)
Color text color
string text value


The documentation for this class was generated from the following file:
  • Text.php

Site last modified August 13th, 2007 by Jean-Marc Trémeaux