downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Cairo::version> <Cairo::availableSurfaces
[edit] Last updated: Fri, 30 Nov 2012

view this page in

Cairo::statusToString

cairo_status_to_string

(PECL cairo >= 0.1.0)

Cairo::statusToString -- cairo_status_to_stringRetrieves the current status as string

Opis

Styl obiektowy (method):

public static string Cairo::statusToString ( int $status )

Styl proceduralny:

string cairo_status_to_string ( int $status )

Retrieves the current status as a readable string

Parametry

status

A valid status code given by cairo_status() or CairoContext::status()

Zwracane wartości

A string containing the current status of a CairoContext object

Przykłady

Przykład #1 Styl obiektowy

<?php
$surface 
= new CairoImageSurface(CairoFormat::ARGB325050);
$context = new CairoContext($surface);

var_dump(Cairo::statusToString($context->status()));
?>

Powyższy przykład wyświetli coś podobnego do:

string(7) "success"

Przykład #2 Styl proceduralny

<?php
$surface 
cairo_image_surface_create(CAIRO_FORMAT_ARGB325050);
$context cairo_create($surface);

var_dump(cairo_status_to_string(cairo_status($context)));
?>

Powyższy przykład wyświetli coś podobnego do:

string(7) "success"

Zobacz też:



add a note add a note User Contributed Notes Cairo::statusToString - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites