Image_TextImage_Text A generic class for text operations on images
Located in /Image_Text.php (line 24)
resource
$img
(line 71)
The image generated
array
$lines
= array() (line 33)
The lines of the text
array
$options
= array(
Options array, these options can be set through the constructor, fontFile and fontPath, width and height are obligatory
int
$_current
= 0 (line 79)
Stores the current line key (in lack of array_funtions returning references
Constructor Image_Text (line 90)
Constructor Constructor
addBorder (line 307)
Add a border to your text box This method adds a border with the given settings to your text box.
The border is outlined for standard, if you want to have the border inlined, use a negative spacing value. Beware, that if you place a border inside an image, eveything under the textbox will be overwriten. If you use rounding, the border background has to have the same color as your image background.
addShadow (line 317)
align (line 249)
Align all lines in the textbox Align all lines in the textbox
colorize (line 270)
Colorize the text box
Colorize the lines in the text box. This method can take 2 color formats. It either gets an array with keys "r", "g" and "b" asigned to a decimal number or a HTML style hex code triple representing the color. It is althought possible to give this method an array of the mentioned color types to alternate the color of the lines. If there are more lines than colors, the colors are cycled.
countLines (line 383)
Get number of lines in this object Get number of lines in this object
currentLine (line 344)
Get the current selected line (reference) Get the current selected line (reference)
firstLine (line 371)
Get the first line and select it (reference) Get the first line and select it (reference)
getAllLines (line 395)
Get all lines Get all lines
getAllTokens (line 407)
Get all tokens of your text in one array Get all tokens of your text in one array
getImage (line 178)
Return the image resource (reference) Return the image resource (reference)
getSize (line 195)
Get the size of the text box Get the size of the text box
measurize (line 220)
Measure the text in the box This function trys to find out the best measures for a given text. It determines the optimal font size and the lines and their content in the box.
nextLine (line 355)
Get the next line and select it (reference) Get the next line and select it (reference)
outImage (line 161)
Output image to stdout (normaly browser) Output image to stdout (normaly browser)
renderImage (line 119)
Render the text to an image Render the text to an image
rotate (line 327)
NOT CORRECT IMPLEMENTED YET!!!
_checkImageType (line 480)
_checkOptions (line 423)
Check the options array Check the options array
_newImage (line 448)
Create a new image Create a new image
_prepareImage (line 464)
Prepare the image for output Prepare the image for output
_testMeasure (line 548)
The actual measurizer process The actual measurizer process, called recursively for a special font and font size from attribute maxFontSize until it finds a fitting solution or attribute minFontSize is reached.
Documentation generated on Sat, 11 Oct 2003 18:01:56 +0200 by phpDocumentor 1.2.2