PHP Doku:: Creates a new CairoImageSurface form a png image file - cairoimagesurface.createfrompng.html

Verlauf / Chronik / History: (3) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoImageSurface class

<<CairoImageSurface::createForData

CairoImageSurface::getData>>

CairoImageSurface::createFromPng

(PECL cairo >= 0.1.0)

CairoImageSurface::createFromPngCreates a new CairoImageSurface form a png image file

Beschreibung

public staticCairoImageSurface CairoImageSurface::createFromPng ( string $file )

Creates a new CairoImageSurface form a png image file

This method should be called static

Parameter-Liste

file

Path to PNG image file

Rückgabewerte

CairoImageSurface object

Beispiele

Beispiel #1 CairoImageSurface::createFromPng() example

<?php

$surface 
CairoImageSurface::createFromPng('/path/to/image/file.png');

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

...

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