PHP Doku:: Emits the current page - cairocontext.copypage.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Bildverarbeitung und -generierung ≥ Cairo ≥ The CairoContext class ≥ CairoContext::copyPage -- cairo_copy_page

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoContext class

<<CairoContext::__construct

CairoContext::copyPath -- cairo_copy_path>>

CairoContext::copyPage

cairo_copy_page

(PECL cairo >= 0.1.0)

CairoContext::copyPage -- cairo_copy_page — Emits the current page

Beschreibung

Object oriented style (method):

public void CairoContext::copyPage ( void )

Procedural style:

void cairo_copy_page ( CairoContext $context )

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 CairoContext::showPage() if you want to get an empty page after the emission.

This is a convenience function that simply calls CairoSurface::copyPage() on CairoContext’s target.

Parameter-Liste

context

A valid CairoContext object created with CairoContext::__construct() or cairo_create()

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 Object oriented style

<?php

$surface 
= new CairoImageSurface(CairoFormat::ARGB32, 50, 50);

$context = new CairoContext($surface);

$context->copyPage();

?>

Beispiel #2 Procedural style

<?php

$surface 
= cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);

$context = cairo_create($surface);

cairo_copy_page($context);

?>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)