downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CairoPdfSurface> <CairoImageSurface::getStride
Last updated: Fri, 12 Mar 2010

view this page in

CairoImageSurface::getWidth

(PECL cairo >= 0.1.0)

CairoImageSurface::getWidthRetrieves the width of the CairoImageSurface

Description

public int CairoImageSurface::getWidth ( void )

Gets the width of the CairoImageSurface

Parameters

This function has no parameters.

Return Values

Returns the width of the CairoImageSurface object

Examples

Example #1 CairoImageSurface::getWidth example

<?php
// creates a new image surface
$surface = new CairoImageSurface(CairoFormat::ARGB328050);

//gets the width
var_dump($surface->getWidth());

?>

The above example will output something similar to:

int(80)

See Also



add a note add a note User Contributed Notes
CairoImageSurface::getWidth
There are no user contributed notes for this page.

CairoPdfSurface> <CairoImageSurface::getStride
Last updated: Fri, 12 Mar 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites