CairoContext::__construct
CairoContext::copyPath
CairoContext
PHP Manual

# CairoContext::copyPage

# cairo_copy_page

(PECL cairo >= 0.1.0)

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

### Opis

Styl obiektowy (method):

public void CairoContext::copyPage ( void )

Styl proceduralny:

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.

### Parametry

`context`

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

### Zwracane wartości

Nie jest zwracana żadna wartość.

### Przykłady

Przykład #1 Styl obiektowy

`<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
$context = new CairoContext($surface);
$context->copyPage();
?>`

Przykład #2 Styl proceduralny

`<?php
$surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);
$context = cairo_create($surface);
cairo_copy_page($context);
?>`

### Zobacz też:

- CairoContext::showPage() - The showPage purpose
- CairoSurface::copyPage() - The copyPage purpose

CairoContext::__construct
CairoContext::copyPath
CairoContext
PHP Manual