CairoSvgSurface::versionToString
CairoImageSurface::__construct
Cairo
PHP Manual

# The CairoImageSurface class

## Introduction

CairoImageSurface provide the ability to render to memory buffers either allocated by cairo or by the calling code. The supported image formats are those defined in CairoFormat.

## Synopsis de la classe

CairoImageSurface
CairoImageSurface extends CairoSurface {
/* Méthodes */
__construct ( int `$format` , int `$width` , int `$height` )
public static void createForData ( string `$data` , int `$format` , int `$width` , int `$height` [, int `$stride` = -1 ] )
public static CairoImageSurface createFromPng ( string `$file` )
public string getData ( void )
public int getFormat ( void )
public int getHeight ( void )
public int getStride ( void )
public int getWidth ( void )
/* Méthodes héritées */
CairoSurface::__construct ( void )
public void CairoSurface::copyPage ( void )
public void CairoSurface::createSimilar ( CairoSurface `$other` , int `$content` , string `$width` , string `$height` )
public void CairoSurface::finish ( void )
public void CairoSurface::flush ( void )
public int CairoSurface::getContent ( void )
public array CairoSurface::getDeviceOffset ( void )
public void CairoSurface::getFontOptions ( void )
public int CairoSurface::getType ( void )
public void CairoSurface::markDirty ( void )
public void CairoSurface::markDirtyRectangle ( string `$x` , string `$y` , string `$width` , string `$height` )
public void CairoSurface::setDeviceOffset ( string `$x` , string `$y` )
public void CairoSurface::setFallbackResolution ( string `$x` , string `$y` )
public void CairoSurface::showPage ( void )
public int CairoSurface::status ( void )
public void CairoSurface::writeToPng ( string `$file` )
}

## Sommaire

- CairoImageSurface::__construct — Crée un nouvel objet CairoImageSurface
- CairoImageSurface::createForData — Le but de createForData
- CairoImageSurface::createFromPng — Crée un nouvel CairoImageSurface à partir d'une image PNG
- CairoImageSurface::getData — Récupère les données de l'image, sous la forme d'une chaîne de caractères
- CairoImageSurface::getFormat — Récupère le format de l'image
- CairoImageSurface::getHeight — Récupère la hauteur d'un CairoImageSurface
- CairoImageSurface::getStride — Le but de getStride
- CairoImageSurface::getWidth — Récupère la largeur d'un CairoImageSurface

CairoSvgSurface::versionToString
CairoImageSurface::__construct
Cairo
PHP Manual