Text |
![]() |
[ class tree: Text ] [ index: Text ] [ all elements ] |
![]() |
Packages: Text Classes: Files: |
[ Top ] Method DetailImage_Text (Constructor) [line 372]
Constructor Set the text and options. This initializes a new Image_Text object. You must set your text here. Optinally you can set all options here using the $options parameter. If you finished switching all options you have to call the init() method first befor doing anything further! See Image_Text::set() for further information.
Parameters:
[ Top ]
autoMeasurize [line 704]
Auto measurize text Automatically determines the greatest possible font size to fit the text into the text box. This method may be very resource intensive on your webserver. A good tweaking point are the $start and $end parameters, which specify the range of font sizes to search through. Anyway, the results should be cached if possible. You can optionally set $start and $end here as a parameter or the settings of the options array are used.
Parameters:
[ Top ]
construct [line 392]
Construct and initialize an Image_Text in one step. This method is called statically and creates plus initializes an Image_Text object. Beware: You will have to recall init() if you set an option afterwards manually.
Parameters:
[ Top ]
display [line 1068]
Display the image (send it to the browser). This will output the image to the users browser. You can use the standard IMAGETYPE_* constants to determine which image type will be generated. Optionally you can save your image to a destination you set in the options.
Parameters:
[ Top ]
getImg [line 1049]
Return the image ressource. Get the image canvas.
[ Top ]
init [line 561]
Initialiaze the Image_Text object. This method has to be called after setting the options for your Image_Text object. It initializes the canvas, normalizes some data and checks important options. Be shure to check the initialization after you switched some options. The set() method may force you to reinitialize the object.
[ Top ]
measurize [line 749]
Measurize text into the text box This method makes your text fit into the defined textbox by measurizing the lines for your given font-size. You can do this manually before rendering (or use even Image_Text::autoMeasurize()) or the renderer will do measurizing automatically.
Parameters:
[ Top ]
render [line 914]
Render the text in the canvas using the given options. This renders the measurized text or automatically measures it first. The $force parameter can be used to switch of measurizing problems (this may cause your text being rendered outside a given text box or destroy your image completely).
Parameters:
[ Top ]
save [line 1120]
Save image canvas. Saves the image to a given destination. You can leave out the destination file path, if you have the option for that set correctly. Saving is possible with the display() method, too.
Parameters:
[ Top ]
set [line 416]
Set options Set a single or multiple options. It may happen that you have to reinitialize the Image_Text object after changing options. For possible options, please take a look at the class options array!
Parameters:
[ Top ]
setColor [line 507]
Set a color This method is used to set a color at a specific color ID inside the color cycle. The following colors syntaxes are understood by this method:
Parameters:
[ Top ]
setColors [line 471]
Set the color-set Using this method you can set multiple colors for your text. Use a simple numeric array to determine their order and give it to this function. Multiple colors will be cycled by the options specified 'color_mode' option. The given array will overwrite the existing color settings! The following colors syntaxes are understood by this method:
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 15:40:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |