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

CairoContext::fillExtents - Computes the filled area | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

CairoContext::fillExtents

cairo_fill_extents

(PECL cairo >= 0.1.0)

CairoContext::fillExtents -- cairo_fill_extentsComputes the filled area

説明

オブジェクト指向型 (method):

public array CairoContext::fillExtents ( void )

手続き型:

array cairo_fill_extents ( CairoContext $context )

Computes a bounding box in user coordinates covering the area that would be affected, (the “inked” area), by a CairoContext::fill() operation given the current path and fill parameters. If the current path is empty, returns an empty rectangle (0,0,0,0). Surface dimensions and clipping are not taken into account.

Contrast with CairoContext::pathExtents(), which is similar, but returns non-zero extents for some paths with no inked area, (such as a simple line segment).

Note that CairoContext::fillExtents() must necessarily do more work to compute the precise inked areas in light of the fill rule, so CairoContext::pathExtents() may be more desirable for sake of performance if the non-inked path extents are desired.

パラメータ

context

A valid CairoContext object created with CairoContext::__construct() or cairo_create()

返り値

An array with the coordinates of the afected area

例1 オブジェクト指向型

<?php
/* ... */
?>

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

...

例2 手続き型

<?php
/* ... */
?>

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

...

参考


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

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