class Image

Methods

__construct(int $width, int $height)

Image constructor.

saveToFile(string $file, string $format = 'png')

Save image to a file.

string
saveToString(string $format = 'png')

Save image to a string.

Details

at line 16
__construct(int $width, int $height)

Image constructor.

Parameters

int $width Image width
int $height Image height

at line 25
saveToFile(string $file, string $format = 'png')

Save image to a file.

Parameters

string $file File path
string $format Format

See also

https://github.com/mapnik/mapnik/wiki/Image-IO Mapnik image formats documentation

at line 34
string saveToString(string $format = 'png')

Save image to a string.

Parameters

string $format

Return Value

string

See also

https://github.com/mapnik/mapnik/wiki/Image-IO Mapnik image formats documentation