PHP Doku:: Get the image format - cairoimagesurface.getformat.html

Verlauf / Chronik / History: (6) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoImageSurface class

<<CairoImageSurface::getData

CairoImageSurface::getHeight>>

CairoImageSurface::getFormat

(PECL cairo >= 0.1.0)

CairoImageSurface::getFormatGet the image format

Beschreibung

public int CairoImageSurface::getFormat ( void )

Retrieves the image format, as one of the CairoFormat defined

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

One of the CairoFormat enums

Beispiele

Beispiel #1 CairoImageSurface::getFormat() example

<?php

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

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

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

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

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(0)
int(2)

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",...)