diff options
Diffstat (limited to 'src/options/gd_driver.php')
-rw-r--r-- | src/options/gd_driver.php | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/options/gd_driver.php b/src/options/gd_driver.php index 2a3f10a..a9e258c 100644 --- a/src/options/gd_driver.php +++ b/src/options/gd_driver.php @@ -8,7 +8,33 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ /** - * Class containing the basic options for charts + * Class containing the extended driver options for the gd driver. + * + * <code> + * $graph = new ezcGraphPieChart(); + * $graph->palette = new ezcGraphPaletteEzGreen(); + * $graph->title = 'Access statistics'; + * $graph->legend = false; + * + * $graph->driver = new ezcGraphGdDriver(); + * $graph->options->font = 'tutorial_font.ttf'; + * + * // Generate a Jpeg with lower quality. The default settings result in a better + * // quality image + * $graph->driver->options->supersampling = 1; + * $graph->driver->options->jpegQuality = 100; + * $graph->driver->options->imageFormat = IMG_JPEG; + * + * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + * 'Mozilla' => 19113, + * 'Explorer' => 10917, + * 'Opera' => 1464, + * 'Safari' => 652, + * 'Konqueror' => 474, + * ) ); + * + * $graph->render( 400, 200, 'tutorial_dirver_gd.jpg' ); + * </code> * * @property int $imageFormat * Type of generated image. |