downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CairoMatrix::initIdentity> <CairoMatrix
[edit] Last updated: Fri, 25 May 2012

view this page in

CairoMatrix::__construct

cairo_matrix_init

(PECL cairo >= 0.1.0)

CairoMatrix::__construct -- cairo_matrix_initCreates 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;

パラメータ

xx

xx component of the affine transformation

yx

yx component of the affine transformation

xy

xy component of the affine transformation

yy

yy component of the affine transformation

x0

X translation component of the affine transformation

y0

Y translation component of the affine transformation

返り値

Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.

例1 オブジェクト指向型

<?php
/* Create a new Matrix */
$matrix = new CairoMatrix(1.00.50.01.00.00.0);
?>

例2 手続き型

<?php
/* Create a new Matrix */
$matrix cairo_matrix_init(1.00.50.01.00.00.0);
?>

参考



add a note add a note User Contributed Notes CairoMatrix::__construct
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites