Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 734

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>The CairoContext class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairo.versionstring.html">Cairo::versionString</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairocontext.appendpath.html">CairoContext::appendPath</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairocontext" class="reference">

 <h1 class="title">The CairoContext class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL cairo &gt;= 0.1.0)</p>


  <div class="section" id="cairocontext.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Context is the main object used when drawing with cairo. To draw with cairo, you create a
    <strong class="classname">CairoContext</strong>, set the target <a href="class.cairosurface.html" class="classname">CairoSurface</a>,
    and drawing options for the <strong class="classname">CairoContext</strong>, create shapes with functions .
    like  <span class="methodname"><a href="cairocontext.moveto.html" class="methodname">CairoContext::moveTo()</a></span> and
     <span class="methodname"><a href="cairocontext.lineto.html" class="methodname">CairoContext::lineTo()</a></span>, and then draw shapes with
     <span class="methodname"><a href="cairocontext.stroke.html" class="methodname">CairoContext::stroke()</a></span> or  <span class="methodname"><a href="cairocontext.fill.html" class="methodname">CairoContext::fill()</a></span>.

    Contexts can be pushed to a stack via  <span class="methodname"><a href="cairocontext.save.html" class="methodname">CairoContext::save()</a></span>.
    They may then safely be changed, without loosing the current state. Use
     <span class="methodname"><a href="cairocontext.restore.html" class="methodname">CairoContext::restore()</a></span>
    to restore to the saved state.
   </p>
  </div>


  <div class="section" id="cairocontext.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoContext</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.appendpath.html" class="methodname">appendPath</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.cairopath.html" class="type CairoPath">CairoPath</a></span> <code class="parameter">$path</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.arc.html" class="methodname">arc</a></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>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle2</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.arcnegative.html" class="methodname">arcNegative</a></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>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle2</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.clip.html" class="methodname">clip</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.clipextents.html" class="methodname">clipExtents</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.clippreserve.html" class="methodname">clipPreserve</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.cliprectanglelist.html" class="methodname">clipRectangleList</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.closepath.html" class="methodname">closePath</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>  <span class="methodname"><a href="cairocontext.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.cairosurface.html" class="type CairoSurface">CairoSurface</a></span> <code class="parameter">$surface</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.copypage.html" class="methodname">copyPage</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">CairoPath</span> <span class="methodname"><a href="cairocontext.copypath.html" class="methodname">copyPath</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">CairoPath</span> <span class="methodname"><a href="cairocontext.copypathflat.html" class="methodname">copyPathFlat</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.curveto.html" class="methodname">curveTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x2</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y2</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x3</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y3</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.devicetouser.html" class="methodname">deviceToUser</a></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>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.devicetouserdistance.html" class="methodname">deviceToUserDistance</a></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>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.fill.html" class="methodname">fill</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.fillextents.html" class="methodname">fillExtents</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.fillpreserve.html" class="methodname">fillPreserve</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.fontextents.html" class="methodname">fontExtents</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getantialias.html" class="methodname">getAntialias</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.getcurrentpoint.html" class="methodname">getCurrentPoint</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.getdash.html" class="methodname">getDash</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getdashcount.html" class="methodname">getDashCount</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getfillrule.html" class="methodname">getFillRule</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getfontface.html" class="methodname">getFontFace</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getfontmatrix.html" class="methodname">getFontMatrix</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getfontoptions.html" class="methodname">getFontOptions</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getgrouptarget.html" class="methodname">getGroupTarget</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getlinecap.html" class="methodname">getLineCap</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getlinejoin.html" class="methodname">getLineJoin</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">float</span> <span class="methodname"><a href="cairocontext.getlinewidth.html" class="methodname">getLineWidth</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getmatrix.html" class="methodname">getMatrix</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">float</span> <span class="methodname"><a href="cairocontext.getmiterlimit.html" class="methodname">getMiterLimit</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.getoperator.html" class="methodname">getOperator</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getscaledfont.html" class="methodname">getScaledFont</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.getsource.html" class="methodname">getSource</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.gettarget.html" class="methodname">getTarget</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">float</span> <span class="methodname"><a href="cairocontext.gettolerance.html" class="methodname">getTolerance</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.glyphpath.html" class="methodname">glyphPath</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$glyphs</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="cairocontext.hascurrentpoint.html" class="methodname">hasCurrentPoint</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.identitymatrix.html" class="methodname">identityMatrix</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="cairocontext.infill.html" class="methodname">inFill</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="cairocontext.instroke.html" class="methodname">inStroke</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.lineto.html" class="methodname">lineTo</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.mask.html" class="methodname">mask</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pattern</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.masksurface.html" class="methodname">maskSurface</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$surface</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
   ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.moveto.html" class="methodname">moveTo</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.newpath.html" class="methodname">newPath</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.newsubpath.html" class="methodname">newSubPath</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.paint.html" class="methodname">paint</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.paintwithalpha.html" class="methodname">paintWithAlpha</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$alpha</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.pathextents.html" class="methodname">pathExtents</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.popgroup.html" class="methodname">popGroup</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.popgrouptosource.html" class="methodname">popGroupToSource</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.pushgroup.html" class="methodname">pushGroup</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.pushgroupwithcontent.html" class="methodname">pushGroupWithContent</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$content</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.rectangle.html" class="methodname">rectangle</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$width</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$height</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.relcurveto.html" class="methodname">relCurveTo</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x1</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y1</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$x2</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y2</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$x3</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y3</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.rellineto.html" class="methodname">relLineTo</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.relmoveto.html" class="methodname">relMoveTo</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.resetclip.html" class="methodname">resetClip</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.restore.html" class="methodname">restore</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.rotate.html" class="methodname">rotate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$angle</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.save.html" class="methodname">save</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.scale.html" class="methodname">scale</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.selectfontface.html" class="methodname">selectFontFace</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$family</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$slant</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$weight</code></span>
   ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setantialias.html" class="methodname">setAntialias</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$antialias</code></span>
   ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setdash.html" class="methodname">setDash</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$dashes</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$offset</code></span>
   ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setfillrule.html" class="methodname">setFillRule</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$setting</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setfontface.html" class="methodname">setFontFace</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.cairofontface.html" class="type CairoFontFace">CairoFontFace</a></span> <code class="parameter">$fontface</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setfontmatrix.html" class="methodname">setFontMatrix</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$matrix</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setfontoptions.html" class="methodname">setFontOptions</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fontoptions</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setfontsize.html" class="methodname">setFontSize</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$size</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setlinecap.html" class="methodname">setLineCap</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$setting</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setlinejoin.html" class="methodname">setLineJoin</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$setting</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setlinewidth.html" class="methodname">setLineWidth</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$width</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setmatrix.html" class="methodname">setMatrix</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$matrix</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setmiterlimit.html" class="methodname">setMiterLimit</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$limit</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setoperator.html" class="methodname">setOperator</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$setting</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setscaledfont.html" class="methodname">setScaledFont</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$scaledfont</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setsource.html" class="methodname">setSource</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pattern</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setsourcergb.html" class="methodname">setSourceRGB</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$blue</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setsourcergba.html" class="methodname">setSourceRGBA</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$blue</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$alpha</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.setsourcesurface.html" class="methodname">setSourceSurface</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$surface</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
   ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.settolerance.html" class="methodname">setTolerance</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$tolerance</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.showpage.html" class="methodname">showPage</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.showtext.html" class="methodname">showText</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="cairocontext.status.html" class="methodname">status</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.stroke.html" class="methodname">stroke</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.strokeextents.html" class="methodname">strokeExtents</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.strokepreserve.html" class="methodname">strokePreserve</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.textextents.html" class="methodname">textExtents</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.textpath.html" class="methodname">textPath</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.transform.html" class="methodname">transform</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$matrix</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="cairocontext.translate.html" class="methodname">translate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.usertodevice.html" class="methodname">userToDevice</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="cairocontext.usertodevicedistance.html" class="methodname">userToDeviceDistance</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$y</code></span>
    )</div>

   }</div>


  </div>

 </div>

 








































































































































































































































































































































































































































































































































































































































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="cairocontext.appendpath.html">CairoContext::appendPath</a> — Appends a path to current path</li><li><a href="cairocontext.arc.html">CairoContext::arc</a> — Adds a circular arc</li><li><a href="cairocontext.arcnegative.html">CairoContext::arcNegative</a> — Adds a negative arc</li><li><a href="cairocontext.clip.html">CairoContext::clip</a> — Establishes a new clip region</li><li><a href="cairocontext.clipextents.html">CairoContext::clipExtents</a> — Computes the area inside the current clip</li><li><a href="cairocontext.clippreserve.html">CairoContext::clipPreserve</a> — Establishes a new clip region from the current clip</li><li><a href="cairocontext.cliprectanglelist.html">CairoContext::clipRectangleList</a> — Retrieves the current clip as a list of rectangles</li><li><a href="cairocontext.closepath.html">CairoContext::closePath</a> — Closes the current path</li><li><a href="cairocontext.construct.html">CairoContext::__construct</a> — Creates a new CairoContext</li><li><a href="cairocontext.copypage.html">CairoContext::copyPage</a> — Emits the current page</li><li><a href="cairocontext.copypath.html">CairoContext::copyPath</a> — Creates a copy of the current path</li><li><a href="cairocontext.copypathflat.html">CairoContext::copyPathFlat</a> — Gets a flattened copy of the current path</li><li><a href="cairocontext.curveto.html">CairoContext::curveTo</a> — Adds a curve</li><li><a href="cairocontext.devicetouser.html">CairoContext::deviceToUser</a> — Transform a coordinate</li><li><a href="cairocontext.devicetouserdistance.html">CairoContext::deviceToUserDistance</a> — Transform a distance</li><li><a href="cairocontext.fill.html">CairoContext::fill</a> — Fills the current path</li><li><a href="cairocontext.fillextents.html">CairoContext::fillExtents</a> — Computes the filled area</li><li><a href="cairocontext.fillpreserve.html">CairoContext::fillPreserve</a> — Fills and preserve the current path</li><li><a href="cairocontext.fontextents.html">CairoContext::fontExtents</a> — Get the font extents</li><li><a href="cairocontext.getantialias.html">CairoContext::getAntialias</a> — Retrives the current antialias mode</li><li><a href="cairocontext.getcurrentpoint.html">CairoContext::getCurrentPoint</a> — The getCurrentPoint purpose</li><li><a href="cairocontext.getdash.html">CairoContext::getDash</a> — The getDash purpose</li><li><a href="cairocontext.getdashcount.html">CairoContext::getDashCount</a> — The getDashCount purpose</li><li><a href="cairocontext.getfillrule.html">CairoContext::getFillRule</a> — The getFillRule purpose</li><li><a href="cairocontext.getfontface.html">CairoContext::getFontFace</a> — The getFontFace purpose</li><li><a href="cairocontext.getfontmatrix.html">CairoContext::getFontMatrix</a> — The getFontMatrix purpose</li><li><a href="cairocontext.getfontoptions.html">CairoContext::getFontOptions</a> — The getFontOptions purpose</li><li><a href="cairocontext.getgrouptarget.html">CairoContext::getGroupTarget</a> — The getGroupTarget purpose</li><li><a href="cairocontext.getlinecap.html">CairoContext::getLineCap</a> — The getLineCap purpose</li><li><a href="cairocontext.getlinejoin.html">CairoContext::getLineJoin</a> — The getLineJoin purpose</li><li><a href="cairocontext.getlinewidth.html">CairoContext::getLineWidth</a> — The getLineWidth purpose</li><li><a href="cairocontext.getmatrix.html">CairoContext::getMatrix</a> — The getMatrix purpose</li><li><a href="cairocontext.getmiterlimit.html">CairoContext::getMiterLimit</a> — The getMiterLimit purpose</li><li><a href="cairocontext.getoperator.html">CairoContext::getOperator</a> — The getOperator purpose</li><li><a href="cairocontext.getscaledfont.html">CairoContext::getScaledFont</a> — The getScaledFont purpose</li><li><a href="cairocontext.getsource.html">CairoContext::getSource</a> — The getSource purpose</li><li><a href="cairocontext.gettarget.html">CairoContext::getTarget</a> — The getTarget purpose</li><li><a href="cairocontext.gettolerance.html">CairoContext::getTolerance</a> — The getTolerance purpose</li><li><a href="cairocontext.glyphpath.html">CairoContext::glyphPath</a> — The glyphPath purpose</li><li><a href="cairocontext.hascurrentpoint.html">CairoContext::hasCurrentPoint</a> — The hasCurrentPoint purpose</li><li><a href="cairocontext.identitymatrix.html">CairoContext::identityMatrix</a> — The identityMatrix purpose</li><li><a href="cairocontext.infill.html">CairoContext::inFill</a> — The inFill purpose</li><li><a href="cairocontext.instroke.html">CairoContext::inStroke</a> — The inStroke purpose</li><li><a href="cairocontext.lineto.html">CairoContext::lineTo</a> — The lineTo purpose</li><li><a href="cairocontext.mask.html">CairoContext::mask</a> — The mask purpose</li><li><a href="cairocontext.masksurface.html">CairoContext::maskSurface</a> — The maskSurface purpose</li><li><a href="cairocontext.moveto.html">CairoContext::moveTo</a> — The moveTo purpose</li><li><a href="cairocontext.newpath.html">CairoContext::newPath</a> — The newPath purpose</li><li><a href="cairocontext.newsubpath.html">CairoContext::newSubPath</a> — The newSubPath purpose</li><li><a href="cairocontext.paint.html">CairoContext::paint</a> — The paint purpose</li><li><a href="cairocontext.paintwithalpha.html">CairoContext::paintWithAlpha</a> — The paintWithAlpha purpose</li><li><a href="cairocontext.pathextents.html">CairoContext::pathExtents</a> — The pathExtents purpose</li><li><a href="cairocontext.popgroup.html">CairoContext::popGroup</a> — The popGroup purpose</li><li><a href="cairocontext.popgrouptosource.html">CairoContext::popGroupToSource</a> — The popGroupToSource purpose</li><li><a href="cairocontext.pushgroup.html">CairoContext::pushGroup</a> — The pushGroup purpose</li><li><a href="cairocontext.pushgroupwithcontent.html">CairoContext::pushGroupWithContent</a> — The pushGroupWithContent purpose</li><li><a href="cairocontext.rectangle.html">CairoContext::rectangle</a> — The rectangle purpose</li><li><a href="cairocontext.relcurveto.html">CairoContext::relCurveTo</a> — The relCurveTo purpose</li><li><a href="cairocontext.rellineto.html">CairoContext::relLineTo</a> — The relLineTo purpose</li><li><a href="cairocontext.relmoveto.html">CairoContext::relMoveTo</a> — The relMoveTo purpose</li><li><a href="cairocontext.resetclip.html">CairoContext::resetClip</a> — The resetClip purpose</li><li><a href="cairocontext.restore.html">CairoContext::restore</a> — The restore purpose</li><li><a href="cairocontext.rotate.html">CairoContext::rotate</a> — The rotate purpose</li><li><a href="cairocontext.save.html">CairoContext::save</a> — The save purpose</li><li><a href="cairocontext.scale.html">CairoContext::scale</a> — The scale purpose</li><li><a href="cairocontext.selectfontface.html">CairoContext::selectFontFace</a> — The selectFontFace purpose</li><li><a href="cairocontext.setantialias.html">CairoContext::setAntialias</a> — The setAntialias purpose</li><li><a href="cairocontext.setdash.html">CairoContext::setDash</a> — The setDash purpose</li><li><a href="cairocontext.setfillrule.html">CairoContext::setFillRule</a> — The setFillRule purpose</li><li><a href="cairocontext.setfontface.html">CairoContext::setFontFace</a> — The setFontFace purpose</li><li><a href="cairocontext.setfontmatrix.html">CairoContext::setFontMatrix</a> — The setFontMatrix purpose</li><li><a href="cairocontext.setfontoptions.html">CairoContext::setFontOptions</a> — The setFontOptions purpose</li><li><a href="cairocontext.setfontsize.html">CairoContext::setFontSize</a> — The setFontSize purpose</li><li><a href="cairocontext.setlinecap.html">CairoContext::setLineCap</a> — The setLineCap purpose</li><li><a href="cairocontext.setlinejoin.html">CairoContext::setLineJoin</a> — The setLineJoin purpose</li><li><a href="cairocontext.setlinewidth.html">CairoContext::setLineWidth</a> — The setLineWidth purpose</li><li><a href="cairocontext.setmatrix.html">CairoContext::setMatrix</a> — The setMatrix purpose</li><li><a href="cairocontext.setmiterlimit.html">CairoContext::setMiterLimit</a> — The setMiterLimit purpose</li><li><a href="cairocontext.setoperator.html">CairoContext::setOperator</a> — The setOperator purpose</li><li><a href="cairocontext.setscaledfont.html">CairoContext::setScaledFont</a> — The setScaledFont purpose</li><li><a href="cairocontext.setsource.html">CairoContext::setSource</a> — The setSource purpose</li><li><a href="cairocontext.setsourcergb.html">CairoContext::setSourceRGB</a> — The setSourceRGB purpose</li><li><a href="cairocontext.setsourcergba.html">CairoContext::setSourceRGBA</a> — The setSourceRGBA purpose</li><li><a href="cairocontext.setsourcesurface.html">CairoContext::setSourceSurface</a> — The setSourceSurface purpose</li><li><a href="cairocontext.settolerance.html">CairoContext::setTolerance</a> — The setTolerance purpose</li><li><a href="cairocontext.showpage.html">CairoContext::showPage</a> — The showPage purpose</li><li><a href="cairocontext.showtext.html">CairoContext::showText</a> — The showText purpose</li><li><a href="cairocontext.status.html">CairoContext::status</a> — The status purpose</li><li><a href="cairocontext.stroke.html">CairoContext::stroke</a> — The stroke purpose</li><li><a href="cairocontext.strokeextents.html">CairoContext::strokeExtents</a> — The strokeExtents purpose</li><li><a href="cairocontext.strokepreserve.html">CairoContext::strokePreserve</a> — The strokePreserve purpose</li><li><a href="cairocontext.textextents.html">CairoContext::textExtents</a> — The textExtents purpose</li><li><a href="cairocontext.textpath.html">CairoContext::textPath</a> — The textPath purpose</li><li><a href="cairocontext.transform.html">CairoContext::transform</a> — The transform purpose</li><li><a href="cairocontext.translate.html">CairoContext::translate</a> — The translate purpose</li><li><a href="cairocontext.usertodevice.html">CairoContext::userToDevice</a> — The userToDevice purpose</li><li><a href="cairocontext.usertodevicedistance.html">CairoContext::userToDeviceDistance</a> — The userToDeviceDistance purpose</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairo.versionstring.html">Cairo::versionString</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairocontext.appendpath.html">CairoContext::appendPath</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>