(PECL cairo >= 0.1.0)
Creates a new scaling matrix
public static void CairoMatrix::initScale ( float $sx, float $sy )
Object oriented style (method):
Procedural style:
object cairo_matrix_init_scale ( float
$sx
, float $sy
)Creates a new matrix to a transformation that scales by sx and sy in the X and Y dimensions, respectively.
Parameters:
sx
scale factor in the X direction
sy
scale factor in the Y direction
Returns:
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.
Examples:
Object oriented style
1 2 3 4 | <?php /* Create a new Matrix */ $matrix = CairoMatrix::initScale(1.0, 2.0); ?> |
Procedural style
1 2 3 4 | <?php /* Create a new Matrix */ $matrix = cairo_matrix_init_scale(1.0, 2.0); ?> |
See also:
Please login to continue.