(PECL cairo >= 0.1.0)
Get the image format
public int CairoImageSurface::getFormat ( void )
Retrieves the image format, as one of the CairoFormat defined
Returns:
One of the CairoFormat enums
Examples:
CairoImageSurface::getFormat() example
1 2 3 4 5 6 7 8 9 10 11 | <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); var_dump( $surface ->getFormat()); // 0 $surface2 = new CairoImageSurface(CairoFormat::A8, 50, 50); var_dump( $surface2 ->getFormat()); // 2 ?> |
The above example will output something similar to:
int(0) int(2)
See also:
Please login to continue.