cairo_surface_write_to_png

(PECL cairo >= 0.1.0)

cairo_surface_write_to_pngDescription

Description

void cairo_surface_write_to_png ( CairoSurface $surface , resource $stream )

The function description goes here.

Warning

This function is currently not documented; only its argument list is available.

Parameters

surface

Description...

stream

Description...

Return Values

What is returned on success and failure

Errors/Exceptions

When does this function issue E_* level errors, and/or throw exceptions.

Examples

Example #1 cairo_surface_write_to_png() example

Any text that describes the purpose of the example, or what goes on in the example should be here.

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also

  • related function name here()

Коментарии

this is a good example 

<?php
    $s 
= new CairoImageSurface(CairoFormat::ARGB32400400);
   
$c = new CairoContext($s);
   
$c->fill();
   
$c->setSourceRGB(100);
   
$c->setLineWidth(100);
   
$c->arc(2002001000M_PI);
   
$c->stroke();
   
$c->setSourceRGB(000.6);
   
$c->rectangle(016040075);
   
$c->fill();
   
$s->writeToPng(dirname(__FILE__)  . '/test.png') or die ("error");
?>
2012-10-14 15:17:34
http://php5.kiev.ua/manual/ru/function.cairo-surface-write-to-png.html

    Поддержать сайт на родительском проекте КГБ