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

search for in the

CairoImageSurface::getData> <CairoImageSurface::createForData
[edit] Last updated: Wed, 22 May 2013

view this page in

CairoImageSurface::createFromPng

(PECL cairo >= 0.1.0)

CairoImageSurface::createFromPngCrée un nouvel CairoImageSurface à partir d'une image PNG

Description

public static CairoImageSurface CairoImageSurface::createFromPng ( string $file )

Crée un nouvel CairoImageSurface à partir d'une image PNG.

Cette méthode doit être appelée de façon statique.

Liste de paramètres

file

Chemin vers le fichier image PNG

Valeurs de retour

Un objet CairoImageSurface.

Exemples

Exemple #1 Exemple avec CairoImageSurface::createFromPng()

<?php

$surface 
CairoImageSurface::createFromPng('/chemin/vers/fichier/image.png');

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

...

Voir aussi



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

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