CairoImageSurface::getHeight
(PECL cairo >= 0.1.0)
CairoImageSurface::getHeight — Retrieves the height of the CairoImageSurface
説明
public int CairoImageSurface::getHeight
( void
)
This methods returns the CairoImageSurface height.
パラメータ
この関数にはパラメータはありません。
返り値
CairoImageSurface object height
例
例1 CairoImageSurface::getHeight() example
<?php
// creates a new image surface
$surface = new CairoImageSurface(CairoFormat::ARGB32, 80, 50);
//gets the height
var_dump($surface->getHeight());
?>
上の例の出力は、 たとえば以下のようになります。
int(50)