PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

CairoImageSurface::getWidth - Retrieves the width of the CairoImageSurface | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

CairoImageSurface::getWidth

(PECL cairo >= 0.1.0)

CairoImageSurface::getWidthRetrieves the width of the CairoImageSurface

説明

public int CairoImageSurface::getWidth ( void )

Gets the width of the CairoImageSurface

パラメータ

この関数にはパラメータはありません。

返り値

Returns the width of the CairoImageSurface object

例1 CairoImageSurface::getWidth() example

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

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

?>

上の例の出力は、 たとえば以下のようになります。

int(80)

参考


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「CairoImageSurface::getWidth - Retrieves the width of the CairoImageSurface」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | CairoImageSurface::getWidth - Retrieves the width of the CairoImageSurface」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: