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.
Class synopsis
CairoImageSurface
extends
CairoSurface
{
/* Methods */
public static void createForData
( string $data
, int $format
, int $width
, int $height
[, int $stride = -1
] )
/* Inherited methods */
CairoSurface::__construct
( void
)
public void CairoSurface::createSimilar
( CairoSurface $other
, int $content
, string $width
, string $height
)
public void CairoSurface::markDirtyRectangle
( string $x
, string $y
, string $width
, string $height
)
}Table of Contents
- CairoImageSurface::__construct — Creates a new CairoImageSurface
- CairoImageSurface::createForData — The createForData purpose
- CairoImageSurface::createFromPng — Creates a new CairoImageSurface form a png image file
- CairoImageSurface::getData — Gets the image data as string
- CairoImageSurface::getFormat — Get the image format
- CairoImageSurface::getHeight — Retrieves the height of the CairoImageSurface
- CairoImageSurface::getStride — The getStride purpose
- CairoImageSurface::getWidth — Retrieves the width of the CairoImageSurface