(PECL cairo >= 0.1.0)
Retrieves the width of the CairoImageSurface
public int CairoImageSurface::getWidth ( void )
Gets the width of the CairoImageSurface
Returns:
Returns the width of the CairoImageSurface object
Examples:
CairoImageSurface::getWidth() example
1 2 3 4 5 6 7 8 | <?php // creates a new image surface $surface = new CairoImageSurface(CairoFormat::ARGB32, 80, 50); //gets the width var_dump( $surface ->getWidth()); ?> |
The above example will output something similar to:
int(80)
See also:
Please login to continue.