SetFileFormat

SetFileFormat — Select the graphic image format generated by PHPlot

Synopsis

$plot->SetFileFormat($format)

Description

SetFileFormat selects a graphic image format from the available image formats. Depending on how PHP and/or GD were built on your system, available formats include JPEG, PNG, GIF, and WBMP.

Parameters

$format

What graphic image format to use: 'jpg', 'png', 'gif', or 'wbmp'.

Notes

The default file format is 'png'.

Depending on how GD was built, not all of these formats will be available. You can use phpinfo() to see what formats are supported by your PHP/GD installation.

JPEG is generally a bad choice for this type of image, as the lossy compression reduces the quality of lines and text.

SourceForge.net Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.