Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: Select action/file-type: CLASS CanvasRectangleText
(Defined in: jpgraph_canvtools.php : 376)
Class usage and Overview YOu can use this class to convieniently draw a text on canvas. The text may have multiple lines wher each line is separated by a "\n" (newline) character.
The text may also be enclosed in a rounded (possibly filled) rectangle.
See also related classes: CanvasGraph and CanvasScale
Class Methods
Description Draws a text paragraph inside a rounded, possible filled, rectangle. Example $t = new CanvasRectangleText(); $t->SetFillColor('lightgreen'); $t->SetFontColor('navy'); $t->SetFont(FF_ARIAL,FS_NORMAL,16); $t->Set("\n\n\n\n\n\n\n\n\n\n\nTTF Fonts",0.5,19,26,32); $t->Stroke($g->img,$scale);
Description Specify paragraph alignment for the text. Alignments can be:
Example $g = new CanvasGraph(550,450); $scale = new CanvasScale($g); $scale->Set(0,27,0,53); // $t = new CanvasRectangleText(); $t->SetFillColor('lightgreen'); $t->SetFontColor('navy'); $t->SetFont(FF_ARIAL,FS_NORMAL,16); $t->ParagraphAlign('center'); $t->Set("First line\nSecond line",0.5,19,26,32); $t->Stroke($g->img,$scale);
Description Set position for text. All coordinates will be translaed according to the current scale used.
Description Specify the text and position. All coordinates will be translated using the specified scale when stroked. Example $t->SetFont(FF_ARIAL,FS_BOLD,18); $t->Set('Family',1,1,8); $t->Stroke($g->img,$scale);
Description Specify auto margin when no specific size is specified. This margin is used to add extra space around the text and the border around the text.
Description Set border color for rectangle See also CanvasRectangleText::SetFontColor and CanvasRectangleText::SetFillColor
Example
Description Specify the radius for the rounded corners. Specifying the value as 0 will give normal square corners.
Example
Description Specify fill color for rectangle Example
Description Specify font Example
Description Set color for text. Use SetColor() to specify border colro and SetFillColor() to set fill color. See also CanvasRectangleText::SetColor and CanvasRectangleText::SetFillColor
Example
Description Specify position. All coordinates will be transalted with the specified scale when stroked.
Description Add a drop shadow to the rounded reactangle surranding the text Example
Description Set text string to be displayed. The text string may have multiple lines separated by a newline character "\n" Example
Description Stroke text to canvas See also CanvasScale::CanvasScale
Example
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0064 ]-- |