Source of: /manual/ro/cairocontext.copypage.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.cairocontext.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'ro',
),
'this' =>
array (
0 => 'cairocontext.copypage.php',
1 => 'CairoContext::copyPage',
),
'up' =>
array (
0 => 'class.cairocontext.php',
1 => 'CairoContext',
),
'prev' =>
array (
0 => 'cairocontext.construct.php',
1 => 'CairoContext::__construct',
),
'next' =>
array (
0 => 'cairocontext.copypath.php',
1 => 'CairoContext::copyPath',
),
'alternatives' =>
array (
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="cairocontext.copypage" class="refentry">
<div class="refnamediv">
<h1 class="refname">CairoContext::copyPage</h1>
<h1 class="refname">cairo_copy_page</h1>
<p class="verinfo">(PECL cairo >= 0.1.0)</p><p class="refpurpose"><span class="refname">CairoContext::copyPage</span> -- <span class="refname">cairo_copy_page</span> — <span class="dc-title">Emits the current page</span></p>
</div>
<div class="refsect1 description" id="refsect1-cairocontext.copypage-description">
<h3 class="title">Descrierea</h3>
<p class="para">Stil obiect-orientat (method):</p>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>CairoContext::copyPage</strong></span>
( <span class="methodparam">void</span>
)</div>
<p class="para rdfs-comment">Stil procedural:</p>
<div class="methodsynopsis dc-description">
<span class="type"><span class="type void">void</span></span> <span class="methodname"><a href="cairosurface.copypage.php" class="methodname">cairo_copy_page</a></span>
( <span class="methodparam"><span class="type"><a href="class.cairocontext.php" class="type CairoContext">CairoContext</a></span> <code class="parameter">$context</code></span>
)</div>
<p class="para rdfs-comment">
Emits the current page for backends that support multiple pages, but doesn’t clear it, so,
the contents of the current page will be retained for the next page too.
Use <span class="methodname"><a href="cairocontext.showpage.php" class="methodname">CairoContext::showPage()</a></span> if you want to get an empty page after the emission.
</p>
<p class="para">
This is a convenience function that simply calls <span class="methodname"><a href="cairosurface.copypage.php" class="methodname">CairoSurface::copyPage()</a></span>
on <a href="class.cairocontext.php" class="classname">CairoContext</a>’s target.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-cairocontext.copypage-parameters">
<h3 class="title">Parametri</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.php" class="classname">CairoContext</a> object created with <span class="methodname"><a href="cairocontext.construct.php" class="methodname">CairoContext::__construct()</a></span> or
<span class="function"><a href="function.cairo-create.php" class="function">cairo_create()</a></span>
</p>
</dd>
</dt>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-cairocontext.copypage-returnvalues">
<h3 class="title">Valorile întoarse</h3>
<p class="para">
Nu este întoarsă nici o valoare.
</p>
</div>
<div class="refsect1 examples" id="refsect1-cairocontext.copypage-examples">
<h3 class="title">Exemple</h3>
<p class="para">
<div class="example" id="example-2783">
<p><strong>Example #1 Stil obiect-orientat</strong></p>
<div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB"><?php<br /><br />$surface </span><span style="color: #007700">= new </span><span style="color: #0000BB">CairoImageSurface</span><span style="color: #007700">(</span><span style="color: #0000BB">CairoFormat</span><span style="color: #007700">::</span><span style="color: #0000BB">ARGB32</span><span style="color: #007700">, </span><span style="color: #0000BB">50</span><span style="color: #007700">, </span><span style="color: #0000BB">50</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$context </span><span style="color: #007700">= new </span><span style="color: #0000BB">CairoContext</span><span style="color: #007700">(</span><span style="color: #0000BB">$surface</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$context</span><span style="color: #007700">-></span><span style="color: #0000BB">copyPage</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?></span>
</span>
</code></div>
</div>
</div>
</p>
<p class="para">
<div class="example" id="example-2784">
<p><strong>Example #2 Stil procedural</strong></p>
<div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB"><?php<br /><br />$surface </span><span style="color: #007700">= </span><span style="color: #0000BB">cairo_image_surface_create</span><span style="color: #007700">(</span><span style="color: #0000BB">CAIRO_FORMAT_ARGB32</span><span style="color: #007700">, </span><span style="color: #0000BB">50</span><span style="color: #007700">, </span><span style="color: #0000BB">50</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$context </span><span style="color: #007700">= </span><span style="color: #0000BB">cairo_create</span><span style="color: #007700">(</span><span style="color: #0000BB">$surface</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">cairo_copy_page</span><span style="color: #007700">(</span><span style="color: #0000BB">$context</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span>
</span>
</code></div>
</div>
</div>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-cairocontext.copypage-seealso">
<h3 class="title">Vedeți de asemenea</h3>
<p class="para">
<ul class="simplelist">
<li class="member"> <span class="methodname"><a href="cairocontext.showpage.php" class="methodname" rel="rdfs-seeAlso">CairoContext::showPage()</a> - The showPage purpose</span></li>
<li class="member"> <span class="methodname"><a href="cairosurface.copypage.php" class="methodname" rel="rdfs-seeAlso">CairoSurface::copyPage()</a> - The copyPage purpose</span></li>
</ul>
</p>
</div>
</div><?php manual_footer(); ?>