CairoImageSurface::getWidth

(PECL cairo >= 0.1.0)

CairoImageSurface::getWidthRetrieves the width of the CairoImageSurface

˵��

public CairoImageSurface::getWidth ( void ) : int

Gets the width of the CairoImageSurface

����

�˺���û�в�����

����ֵ

Returns the width of the CairoImageSurface object

����

Example #1 CairoImageSurface::getWidth() example

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

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

?>

�������̵���������ڣ�

int(80)

�μ�