CairoMatrix::initIdentity

(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:

CairoMatrix::__construct() -

CairoMatrix::initRotate() -

CairoMatrix::initScale() -

CairoMatrix::initTranslate() -

doc_php
2016-02-24 15:59:33
Comments
Leave a Comment

Please login to continue.