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

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

  

CairoContext::clipExtents

cairo_clip_extents

(PECL cairo >= 0.1.0)

CairoContext::clipExtents -- cairo_clip_extentsComputes the area inside the current clip

説明

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

public array CairoContext::clipExtents ( void )

手続き型:

array cairo_clip_extents ( CairoContext $context )

Computes a bounding box in user coordinates covering the area inside the current clip.

パラメータ

context

A valid CairoContext object

返り値

An array containing the (float)x1, (float)y1, (float)x2, (float)y2, coordinates covering the area inside the current clip

例1 オブジェクト指向型

<?php

$surface 
= new CairoImageSurface(CairoFormat::ARGB325050);

$context = new CairoContext($surface);

var_dump($context->clipExtents());
?>

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

array(4) {
  [0]=>
  float(0)
  [1]=>
  float(0)
  [2]=>
  float(50)
  [3]=>
  float(50)
}

例2 手続き型

<?php

$surface 
cairo_image_surface_create(CAIRO_FORMAT_ARGB325050);

$context cairo_create($surface);

var_dump(cairo_clip_extents($context));

?>

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

array(4) {
  [0]=>
  float(0)
  [1]=>
  float(0)
  [2]=>
  float(50)
  [3]=>
  float(50)
}

参考


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

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