# The CairoSurface class

(PECL cairo >= 0.1.0)

## Introduction

This is the base-class for all other Surface types. CairoSurface is the abstract type representing all different drawing targets that cairo can render to. The actual drawings are performed using a CairoContext.

## Class synopsis

CairoSurface {
/* Methods */
public __construct ( void )
public copyPage ( void ) : void
public createSimilar ( CairoSurface `$other` , int `$content` , string `$width` , string `$height` ) : void
public finish ( void ) : void
public flush ( void ) : void
public getContent ( void ) : int
public getDeviceOffset ( void ) : array
public getFontOptions ( void ) : void
public getType ( void ) : int
public markDirty ( void ) : void
public markDirtyRectangle ( float `$x` , float `$y` , float `$width` , float `$height` ) : void
public setDeviceOffset ( float `$x` , float `$y` ) : void
public setFallbackResolution ( float `$x` , float `$y` ) : void
public showPage ( void ) : void
public status ( void ) : int
public writeToPng ( string `$file` ) : void
}

## Table of Contents

- CairoSurface::__construct — The __construct purpose
- CairoSurface::copyPage — The copyPage purpose
- CairoSurface::createSimilar — The createSimilar purpose
- CairoSurface::finish — The finish purpose
- CairoSurface::flush — The flush purpose
- CairoSurface::getContent — The getContent purpose
- CairoSurface::getDeviceOffset — The getDeviceOffset purpose
- CairoSurface::getFontOptions — The getFontOptions purpose
- CairoSurface::getType — The getType purpose
- CairoSurface::markDirty — The markDirty purpose
- CairoSurface::markDirtyRectangle — The markDirtyRectangle purpose
- CairoSurface::setDeviceOffset — The setDeviceOffset purpose
- CairoSurface::setFallbackResolution — The setFallbackResolution purpose
- CairoSurface::showPage — The showPage purpose
- CairoSurface::status — The status purpose
- CairoSurface::writeToPng — The writeToPng purpose