Cairo::versionString
CairoContext::appendPath
Cairo
PHP Manual

# The CairoContext class

## Introduction

Context is the main object used when drawing with cairo. To draw with cairo, you create a CairoContext, set the target CairoSurface, and drawing options for the CairoContext, create shapes with functions . like CairoContext::moveTo and CairoContext::lineTo, and then draw shapes with CairoContext::stroke or CairoContext::fill. Contexts can be pushed to a stack via CairoContext::save. They may then safely be changed, without loosing the current state. Use CairoContext::restore to restore to the saved state.

## Synopsis de la classe

CairoContext
CairoContext {
/* Méthodes */
public void appendPath ( CairoPath `$path` )
public void arc ( float `$x` , float `$y` , float `$radius` , float `$angle1` , float `$angle2` )
public void arcNegative ( float `$x` , float `$y` , float `$radius` , float `$angle1` , float `$angle2` )
public void clip ( void )
public array clipExtents ( void )
public void clipPreserve ( void )
public array clipRectangleList ( void )
public void closePath ( void )
__construct ( CairoSurface `$surface` )
public void copyPage ( void )
public CairoPath copyPath ( void )
public CairoPath copyPathFlat ( void )
public void curveTo ( float `$x1` , float `$y1` , float `$x2` , float `$y2` , float `$x3` , float `$y3` )
public array deviceToUser ( float `$x` , float `$y` )
public array deviceToUserDistance ( float `$x` , float `$y` )
public void fill ( void )
public array fillExtents ( void )
public void fillPreserve ( void )
public array fontExtents ( void )
public int getAntialias ( void )
public array getCurrentPoint ( void )
public array getDash ( void )
public int getDashCount ( void )
public int getFillRule ( void )
public void getFontFace ( void )
public void getFontMatrix ( void )
public void getFontOptions ( void )
public void getGroupTarget ( void )
public int getLineCap ( void )
public int getLineJoin ( void )
public float getLineWidth ( void )
public void getMatrix ( void )
public float getMiterLimit ( void )
public int getOperator ( void )
public void getScaledFont ( void )
public void getSource ( void )
public void getTarget ( void )
public float getTolerance ( void )
public void glyphPath ( array `$glyphs` )
public bool hasCurrentPoint ( void )
public void identityMatrix ( void )
public bool inFill ( string `$x` , string `$y` )
public bool inStroke ( string `$x` , string `$y` )
public void lineTo ( string `$x` , string `$y` )
public void mask ( string `$pattern` )
public void maskSurface ( string `$surface` [, string `$x` [, string `$y` ]] )
public void moveTo ( string `$x` , string `$y` )
public void newPath ( void )
public void newSubPath ( void )
public void paint ( void )
public void paintWithAlpha ( string `$alpha` )
public array pathExtents ( void )
public void popGroup ( void )
public void popGroupToSource ( void )
public void pushGroup ( void )
public void pushGroupWithContent ( string `$content` )
public void rectangle ( string `$x` , string `$y` , string `$width` , string `$height` )
public void relCurveTo ( string `$x1` , string `$y1` , string `$x2` , string `$y2` , string `$x3` , string `$y3` )
public void relLineTo ( string `$x` , string `$y` )
public void relMoveTo ( string `$x` , string `$y` )
public void resetClip ( void )
public void restore ( void )
public void rotate ( string `$angle` )
public void save ( void )
public void scale ( string `$x` , string `$y` )
public void selectFontFace ( string `$family` [, string `$slant` [, string `$weight` ]] )
public void setAntialias ([ string `$antialias` ] )
public void setDash ( string `$dashes` [, string `$offset` ] )
public void setFillRule ( string `$setting` )
public void setFontFace ( CairoFontFace `$fontface` )
public void setFontMatrix ( string `$matrix` )
public void setFontOptions ( string `$fontoptions` )
public void setFontSize ( string `$size` )
public void setLineCap ( string `$setting` )
public void setLineJoin ( string `$setting` )
public void setLineWidth ( string `$width` )
public void setMatrix ( string `$matrix` )
public void setMiterLimit ( string `$limit` )
public void setOperator ( string `$setting` )
public void setScaledFont ( string `$scaledfont` )
public void setSource ( string `$pattern` )
public void setSourceRGB ( string `$red` , string `$green` , string `$blue` )
public void setSourceRGBA ( string `$red` , string `$green` , string `$blue` , string `$alpha` )
public void setSourceSurface ( string `$surface` [, string `$x` [, string `$y` ]] )
public void setTolerance ( string `$tolerance` )
public void showPage ( void )
public void showText ( string `$text` )
public int status ( void )
public void stroke ( void )
public array strokeExtents ( void )
public void strokePreserve ( void )
public array textExtents ( string `$text` )
public void textPath ( string `$string` )
public void transform ( string `$matrix` )
public void translate ( string `$x` , string `$y` )
public array userToDevice ( string `$x` , string `$y` )
public array userToDeviceDistance ( string `$x` , string `$y` )
}

## Sommaire

- CairoContext::appendPath — Appends a path to current path
- CairoContext::arc — Adds a circular arc
- CairoContext::arcNegative — Adds a negative arc
- CairoContext::clip — Establishes a new clip region
- CairoContext::clipExtents — Computes the area inside the current clip
- CairoContext::clipPreserve — Establishes a new clip region from the current clip
- CairoContext::clipRectangleList — Retrieves the current clip as a list of rectangles
- CairoContext::closePath — Closes the current path
- CairoContext::__construct — Creates a new CairoContext
- CairoContext::copyPage — Emits the current page
- CairoContext::copyPath — Creates a copy of the current path
- CairoContext::copyPathFlat — Gets a flattened copy of the current path
- CairoContext::curveTo — Adds a curve
- CairoContext::deviceToUser — Transform a coordinate
- CairoContext::deviceToUserDistance — Transform a distance
- CairoContext::fill — Fills the current path
- CairoContext::fillExtents — Computes the filled area
- CairoContext::fillPreserve — Fills and preserve the current path
- CairoContext::fontExtents — Get the font extents
- CairoContext::getAntialias — Retrives the current antialias mode
- CairoContext::getCurrentPoint — Le but de getCurrentPoint
- CairoContext::getDash — Le but de getDash
- CairoContext::getDashCount — Le but de getDashCount
- CairoContext::getFillRule — Le but de getFillRule
- CairoContext::getFontFace — Le but de getFontFace
- CairoContext::getFontMatrix — Le but de getFontMatrix
- CairoContext::getFontOptions — Le but de getFontOptions
- CairoContext::getGroupTarget — Le but de getGroupTarget
- CairoContext::getLineCap — Le but de getLineCap
- CairoContext::getLineJoin — Le but de getLineJoin
- CairoContext::getLineWidth — Le but de getLineWidth
- CairoContext::getMatrix — Le but de getMatrix
- CairoContext::getMiterLimit — Le but de getMiterLimit
- CairoContext::getOperator — Le but de getOperator
- CairoContext::getScaledFont — Le but de getScaledFont
- CairoContext::getSource — Le but de getSource
- CairoContext::getTarget — Le but de getTarget
- CairoContext::getTolerance — Le but de getTolerance
- CairoContext::glyphPath — Le but de glyphPath
- CairoContext::hasCurrentPoint — Le but de hasCurrentPoint
- CairoContext::identityMatrix — Le but de identityMatrix
- CairoContext::inFill — Le but de inFill
- CairoContext::inStroke — The inStroke purpose
- CairoContext::lineTo — The lineTo purpose
- CairoContext::mask — The mask purpose
- CairoContext::maskSurface — The maskSurface purpose
- CairoContext::moveTo — The moveTo purpose
- CairoContext::newPath — The newPath purpose
- CairoContext::newSubPath — The newSubPath purpose
- CairoContext::paint — The paint purpose
- CairoContext::paintWithAlpha — Le but de paintWithAlpha
- CairoContext::pathExtents — Le but de pathExtents
- CairoContext::popGroup — Le but de popGroup purpose
- CairoContext::popGroupToSource — Le but de popGroupToSource
- CairoContext::pushGroup — Le but de pushGroup
- CairoContext::pushGroupWithContent — Le but de pushGroupWithContent
- CairoContext::rectangle — Le but de rectangle
- CairoContext::relCurveTo — Le but de relCurveTo
- CairoContext::relLineTo — Le but de relLineTo
- CairoContext::relMoveTo — Le but de relMoveTo
- CairoContext::resetClip — Le but de resetClip
- CairoContext::restore — Le but de restore
- CairoContext::rotate — Le but de rotate
- CairoContext::save — Le but de save
- CairoContext::scale — Le but de scale
- CairoContext::selectFontFace — Le but de selectFontFace
- CairoContext::setAntialias — Le but de setAntialias
- CairoContext::setDash — Le but de setDash
- CairoContext::setFillRule — Le but de setFillRule
- CairoContext::setFontFace — Le but de setFontFace
- CairoContext::setFontMatrix — Le but de setFontMatrix
- CairoContext::setFontOptions — Le but de setFontOptions
- CairoContext::setFontSize — Le but de setFontSize
- CairoContext::setLineCap — Le but de setLineCap
- CairoContext::setLineJoin — Le but de setLineJoin
- CairoContext::setLineWidth — Le but de setLineWidth
- CairoContext::setMatrix — Le but de setMatrix
- CairoContext::setMiterLimit — Le but de setMiterLimit
- CairoContext::setOperator — Le but de setOperator
- CairoContext::setScaledFont — Le but de setScaledFont
- CairoContext::setSource — Le but de setSource
- CairoContext::setSourceRGB — Le but de setSourceRGB
- CairoContext::setSourceRGBA — Le but de setSourceRGBA
- CairoContext::setSourceSurface — Le but de setSourceSurface
- CairoContext::setTolerance — Le but de setTolerance
- CairoContext::showPage — Le but de showPage
- CairoContext::showText — Le but de showText
- CairoContext::status — Le but de status
- CairoContext::stroke — Le but de stroke
- CairoContext::strokeExtents — Le but de strokeExtents
- CairoContext::strokePreserve — Le but de strokePreserve
- CairoContext::textExtents — Le but de textExtents
- CairoContext::textPath — Le but de textPath
- CairoContext::transform — Le but de transform
- CairoContext::translate — Le but de translate
- CairoContext::userToDevice — Le but de userToDevice
- CairoContext::userToDeviceDistance — Le but de userToDeviceDistance

Cairo::versionString
CairoContext::appendPath
Cairo
PHP Manual