Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 507

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Transform a distance</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairocontext.devicetouser.html">CairoContext::deviceToUser</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairocontext.fill.html">CairoContext::fill</a></div>
 <div class="up"><a href="class.cairocontext.html">CairoContext</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="cairocontext.devicetouserdistance" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">CairoContext::deviceToUserDistance</h1>
  <h1 class="refname">cairo_device_to_user_distance</h1>
  <p class="verinfo">(PECL cairo &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">CairoContext::deviceToUserDistance</span> -- <span class="refname">cairo_device_to_user_distance</span> &mdash; <span class="dc-title">Transform a distance</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-cairocontext.devicetouserdistance-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="type">array</span> <span class="methodname"><strong>CairoContext::deviceToUserDistance</strong></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
    )</div>

  <p class="para rdfs-comment">Procedural style:</p>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>cairo_device_to_user_distance</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.cairocontext.html" class="type CairoContext">CairoContext</a></span> <code class="parameter">$context</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
   )</div>

  <p class="para rdfs-comment">
   Transform a distance vector from device space to user space. This function is similar to
    <span class="methodname"><a href="cairocontext.devicetouser.html" class="methodname">CairoContext::deviceToUser()</a></span> or  <span class="function"><a href="cairocontext.devicetouser.html" class="function">cairo_device_to_user()</a></span>
   except that the translation components of the inverse Cairo Transformation Matrix will be
   ignored when transforming (<em><code class="parameter">x</code></em>,<em><code class="parameter">y</code></em>).
  </p>
 
 </div>


 <div class="refsect1 parameters" id="refsect1-cairocontext.devicetouserdistance-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">context</code></em></span>
     <dd>

      <p class="para">
       A valid <a href="class.cairocontext.html" class="classname">CairoContext</a> object created with
        <span class="methodname"><a href="cairocontext.construct.html" class="methodname">CairoContext::__construct()</a></span> or  <span class="function"><a href="function.cairo-create.html" class="function">cairo_create()</a></span>
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">x</code></em></span>
     <dd>

      <p class="para">
       X component of a distance vector
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">y</code></em></span>
     <dd>

      <p class="para">
       Y component of a distance vector
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-cairocontext.devicetouserdistance-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an array with the x and y values of a distance vector in the user-space
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-cairocontext.devicetouserdistance-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="methodname"><a href="cairocontext.devicetouser.html" class="methodname" rel="rdfs-seeAlso">CairoContext::deviceToUser()</a> - Transform a coordinate</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="cairocontext.devicetouser.html">CairoContext::deviceToUser</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairocontext.fill.html">CairoContext::fill</a></div>
 <div class="up"><a href="class.cairocontext.html">CairoContext</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>