| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
CairoMatrix::__constructcairo_matrix_init(PECL cairo >= 0.1.0) CairoMatrix::__construct -- cairo_matrix_init — Creates a new CairoMatrix object 説明オブジェクト指向型 (method):
public CairoMatrix::__construct
([ float
$xx = 1.0
[, float $yx = 0.0
[, float $xy = 0.0
[, float $yy = 1.0
[, float $x0 = 0.0
[, float $y0 = 0.0
]]]]]] )手続き型:
object cairo_matrix_init
([ float
$xx = 1.0
[, float $yx = 0.0
[, float $xy = 0.0
[, float $yy = 1.0
[, float $x0 = 0.0
[, float $y0 = 0.0
]]]]]] )Returns new CairoMatrix object. Matrices are used throughout cairo to convert between different coordinate spaces. Sets matrix to be the affine transformation given by xx, yx, xy, yy, x0, y0. The transformation is given by: x_new = xx * x + xy * y + x0; and y_new = yx * x + yy * y + y0; パラメータ
返り値Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns. 例
例1 オブジェクト指向型
<?php
例2 手続き型
<?php 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「CairoMatrix::__construct - Creates a new CairoMatrix object」をGoogle検索
|