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

search for in the

CairoImageSurface::getHeight> <CairoImageSurface::getData
[edit] Last updated: Fri, 17 May 2013

view this page in

CairoImageSurface::getFormat

(PECL cairo >= 0.1.0)

CairoImageSurface::getFormatRécupère le format de l'image

Description

public int CairoImageSurface::getFormat ( void )

Récupère le format de l'image, suivant les formats définis par CairoFormat.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Un format d'image, parmi ceux définis par CairoFormat.

Exemples

Exemple #1 Exemple avec CairoImageSurface::getFormat()

<?php

$surface 
= new CairoImageSurface(CairoFormat::ARGB325050);

var_dump($surface->getFormat()); // 0

$surface2 = new CairoImageSurface(CairoFormat::A85050);

var_dump($surface2->getFormat()); // 2

?>

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

int(0)
int(2)

Voir aussi



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

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