(PECL cairo >= 0.1.0)
Creates a new identity matrix
public static void CairoMatrix::initIdentity ( void )
Object oriented style (method):
Procedural style:
object cairo_matrix_init_identity ( void )
Creates a new matrix that is an identity transformation. An identity transformation means the source data is copied into the destination data without change
Returns:
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.
Examples:
Object oriented style
<?php /* Create a new Matrix */ $matrix = CairoMatrix::initIdentity(); ?>
Procedural style
<?php /* Create a new Matrix */ $matrix = cairo_matrix_init_identity(); ?>
See also:
Please login to continue.