CAIRO_MATRIX_INIT_IDENTITY(3) 1 CAIRO_MATRIX_INIT_IDENTITY(3)
CairoMatrix::initIdentity - Creates a new identity matrix
Object oriented style (method):
SYNOPSIS
publicstatic void CairoMatrix::initIdentity (void )
DESCRIPTION
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
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.
EXAMPLES
Example #1
Object oriented style
<?php
/* Create a new Matrix */
$matrix = CairoMatrix::initIdentity();
?>
Example #2
Procedural style
<?php
/* Create a new Matrix */
$matrix = cairo_matrix_init_identity();
?>
SEE ALSO
CairoMatrix::__construct, CairoMatrix::initRotate, CairoMatrix::initScale, CairoMatrix::initTranslate.
PHP Documentation Group CAIRO_MATRIX_INIT_IDENTITY(3)