(PECL cairo >= 0.1.0)
CairoMatrix::initScale -- cairo_matrix_init_scale -- cairo_matrix_create_scale — Creates a new scaling matrix
Объектно-ориентированный стиль (method):
$sx
   , float $sy
   )Процедурный стиль:
$sx
   , float $sy
   )Creates a new matrix to a transformation that scales by sx and sy in the X and Y dimensions, respectively.
sxscale factor in the X direction
syscale factor in the Y direction
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.
Пример #1 Объектно-ориентированный стиль
<?php
/* Create a new Matrix */
$matrix = CairoMatrix::initScale(1.0, 2.0);
?>
Пример #2 Процедурный стиль
<?php
/* Create a new Matrix */
$matrix = cairo_matrix_init_scale(1.0, 2.0);
?>