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

search for in the

CairoPdfSurface> <CairoImageSurface::getStride
[edit] Last updated: Fri, 24 May 2013

view this page in

CairoImageSurface::getWidth

(PECL cairo >= 0.1.0)

CairoImageSurface::getWidthRécupère la largeur d'un CairoImageSurface

Description

public int CairoImageSurface::getWidth ( void )

Récupère la largeur d'un CairoImageSurface.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne la largeur d'un objet CairoImageSurface.

Exemples

Exemple #1 Exemple avec CairoImageSurface::getWidth()

<?php
// Création d'une nouvelle surface pour une image
$surface = new CairoImageSurface(CairoFormat::ARGB328050);

// Récupère la largeur
var_dump($surface->getWidth());

?>

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

int(80)

Voir aussi



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

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