<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Creates a new identity matrix</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="cairomatrix.construct.html">CairoMatrix::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="cairomatrix.initrotate.html">CairoMatrix::initRotate</a></div> <div class="up"><a href="class.cairomatrix.html">CairoMatrix</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="cairomatrix.initidentity" class="refentry"> <div class="refnamediv"> <h1 class="refname">CairoMatrix::initIdentity</h1> <h1 class="refname">cairo_matrix_init_identity</h1> <p class="verinfo">(PECL cairo >= 0.1.0)</p><p class="refpurpose"><span class="refname">CairoMatrix::initIdentity</span> -- <span class="refname">cairo_matrix_init_identity</span> — <span class="dc-title">Creates a new identity matrix</span></p> </div> <div class="refsect1 description" id="refsect1-cairomatrix.initidentity-description"> <h3 class="title">Description</h3> <p class="para">Object oriented style (method):</p> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="modifier">static</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>CairoMatrix::initIdentity</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment">Procedural style:</p> <div class="methodsynopsis dc-description"> <span class="type">object</span> <span class="methodname"><strong>cairo_matrix_init_identity</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Creates a new matrix that is an identity transformation. An identity transformation means the source data is copied into the destination data without change </p> </div> <div class="refsect1 parameters" id="refsect1-cairomatrix.initidentity-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-cairomatrix.initidentity-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns. </p> </div> <div class="refsect1 examples" id="refsect1-cairomatrix.initidentity-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-3144"> <p><strong>Example #1 Object oriented style</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/* Create a new Matrix */<br /></span><span style="color: #0000BB">$matrix </span><span style="color: #007700">= </span><span style="color: #0000BB">CairoMatrix</span><span style="color: #007700">::</span><span style="color: #0000BB">initIdentity</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> <p class="para"> <div class="example" id="example-3145"> <p><strong>Example #2 Procedural style</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/* Create a new Matrix */<br /></span><span style="color: #0000BB">$matrix </span><span style="color: #007700">= </span><span style="color: #0000BB">cairo_matrix_init_identity</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-cairomatrix.initidentity-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="cairomatrix.construct.html" class="methodname" rel="rdfs-seeAlso">CairoMatrix::__construct()</a> - Creates a new CairoMatrix object</span></li> <li class="member"> <span class="methodname"><a href="cairomatrix.initrotate.html" class="methodname" rel="rdfs-seeAlso">CairoMatrix::initRotate()</a> - Creates a new rotated matrix</span></li> <li class="member"> <span class="methodname"><a href="cairomatrix.initscale.html" class="methodname" rel="rdfs-seeAlso">CairoMatrix::initScale()</a> - Creates a new scaling matrix</span></li> <li class="member"> <span class="methodname"><a href="cairomatrix.inittranslate.html" class="methodname" rel="rdfs-seeAlso">CairoMatrix::initTranslate()</a> - Creates a new translation matrix</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="cairomatrix.construct.html">CairoMatrix::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="cairomatrix.initrotate.html">CairoMatrix::initRotate</a></div> <div class="up"><a href="class.cairomatrix.html">CairoMatrix</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>