Image_Graph::getGDImage()

Image_Graph::getGDImage() -- Create a GD-image-resource for the graph

Synopsis

require_once '/Graph.php';

resource Image_Graph::getGDImage ([resource $gdResource = NULL])

Description

This function will return a truecolor GD-resource. The GD-resource will have the size you supplied when creating the Image_Graph-instance. If you need a palette GD-resource (e.g. for writing of GIF-images) please be sure to downsample the truecolor GD-resource returned by this function yourself. A truecolor-resource is needed for all alpha-channel-features etc. to receive best possible image-quality. It's possible to optionally give this function an already existing gd-resource. It will then be used for drawing. Please note that (at the moment) no solid standard background-fill will be done.

Parameter

resource $gdResource

if supplied an existing gd-resource will be used for drawing

Return value

returns truecolor gd-resource containing image of graph

Throws

throws no exceptions thrown

Note

This function can not be called statically.