CairoMatrix::__construct
cairo_matrix_init
(PECL cairo >= 0.1.0)
CairoMatrix::__construct -- cairo_matrix_init — Creates a new CairoMatrix object
Описание
Объектно-ориентированный стиль (method):
$xx
= 1.0
[, float $yx
= 0.0
[, float $xy
= 0.0
[, float $yy
= 1.0
[, float $x0
= 0.0
[, float $y0
= 0.0
]]]]]] )Процедурный стиль:
$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.0, 0.5, 0.0, 1.0, 0.0, 0.0);
?>
Пример #2 Процедурный стиль
<?php
/* Create a new Matrix */
$matrix = cairo_matrix_init(1.0, 0.5, 0.0, 1.0, 0.0, 0.0);
?>
Смотрите также
- CairoMatrix::initIdentity() - Creates a new identity matrix
- CairoMatrix::initRotate() - Creates a new rotated matrix
- CairoMatrix::initScale() - Creates a new scaling matrix
- CairoMatrix::initTranslate() - Creates a new translation matrix
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Обработка и генерация изображений
- Cairo
- Функция CairoMatrix::__construct() - Creates a new CairoMatrix object
- Функция CairoMatrix::initIdentity() - Creates a new identity matrix
- Функция CairoMatrix::initRotate() - Creates a new rotated matrix
- Функция CairoMatrix::initScale() - Creates a new scaling matrix
- Функция CairoMatrix::initTranslate() - Creates a new translation matrix
- Функция CairoMatrix::invert() - The invert purpose
- Функция CairoMatrix::multiply() - The multiply purpose
- Функция CairoMatrix::rotate() - The rotate purpose
- Функция CairoMatrix::scale() - Applies scaling to a matrix
- Функция CairoMatrix::transformDistance() - The transformDistance purpose
- Функция CairoMatrix::transformPoint() - The transformPoint purpose
- Функция CairoMatrix::translate() - The translate purpose
Коментарии
404 Not Found