La clase CairoContext

(PECL cairo >= 0.1.0)

Introducción

Context (contexto) es el objeto principal usado cuando se dibuja con cairo. Para dibular con cairo, se crea un CairoContext, se establece el CairoSurface objetivo, y las opciones de dibujo para el CairoContext, se crean formas con funciones, como CairoContext::moveTo() y CairoContext::lineTo(), y despúes se dibujan formas con CairoContext::stroke() o CairoContext::fill(). Los contextos de pueden intorducir en una pila mediante CairoContext::save(). Entonces se pueden cambiar de forma segura, sin perder el estado actual. Use CairoContext::restore() para restaurar el estado guardado.

Sinopsis de la Clase

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

Tabla de contenidos

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top