PHP Doku:: Retrieves the width of the CairoImageSurface - cairoimagesurface.getwidth.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungCairoThe CairoImageSurface classCairoImageSurface::getWidth

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoImageSurface class

<<CairoImageSurface::getStride

The CairoPdfSurface class>>

CairoImageSurface::getWidth

(PECL cairo >= 0.1.0)

CairoImageSurface::getWidthRetrieves the width of the CairoImageSurface

Beschreibung

public int CairoImageSurface::getWidth ( void )

Gets the width of the CairoImageSurface

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the width of the CairoImageSurface object

Beispiele

Beispiel #1 CairoImageSurface::getWidth() example

<?php
// creates a new image surface
$surface = new CairoImageSurface(CairoFormat::ARGB328050);

//gets the width
var_dump($surface->getWidth());

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(80)

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)