Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cairo_matrix_init(3) [php man page]

CAIRO_MATRIX_INIT(3)							 1						      CAIRO_MATRIX_INIT(3)

CairoMatrix::__construct - Creates a new CairoMatrix object

       Object oriented style (method):

SYNOPSIS
public CairoMatrix::__construct ([float $xx = 1.0], [float $yx = 0.0], [float $xy = 0.0], [float $yy = 1.0], [float $x0 = 0.0], [float $y0 = 0.0]) DESCRIPTION
Procedural style: object cairo_matrix_init ([float $xx = 1.0], [float $yx = 0.0], [float $xy = 0.0], [float $yy = 1.0], [float $x0 = 0.0], [float $y0 = 0.0]) Returns new CairoMatrix object. Matrices are used throughout cairo to convert between different coordinate spaces. Sets matrix to be the affine transformation given by xx, yx, xy, yy, x0, y0. The transformation is given by: x_new = xx * x + xy * y + x0; and y_new = yx * x + yy * y + y0; PARAMETERS
o $xx - xx component of the affine transformation o $yx - yx component of the affine transformation o $xy - xy component of the affine transformation o $yy - yy component of the affine transformation o $x0 - X translation component of the affine transformation o $y0 - Y translation component of the affine transformation RETURN VALUES
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns. EXAMPLES
Example #1 Object oriented style <?php /* Create a new Matrix */ $matrix = new CairoMatrix(1.0, 0.5, 0.0, 1.0, 0.0, 0.0); ?> Example #2 Procedural style <?php /* Create a new Matrix */ $matrix = cairo_matrix_init(1.0, 0.5, 0.0, 1.0, 0.0, 0.0); ?> SEE ALSO
CairoMatrix::initIdentity, CairoMatrix::initRotate, CairoMatrix::initScale, CairoMatrix::initTranslate. PHP Documentation Group CAIRO_MATRIX_INIT(3)

Check Out this Related Man Page

IMAGICKDRAW(3)								 1							    IMAGICKDRAW(3)

The ImagickDraw class

CLASS SYNOPSIS
ImagickDraw ImagickDraw o bool ImagickDraw::affine (array $affine) o bool ImagickDraw::annotation (float $x, float $y, string $text) o bool ImagickDraw::arc (float $sx, float $sy, float $ex, float $ey, float $sd, float $ed) o bool ImagickDraw::bezier (array $coordinates) o bool ImagickDraw::circle (float $ox, float $oy, float $px, float $py) o bool ImagickDraw::clear (void ) o ImagickDraw ImagickDraw::clone (void ) o bool ImagickDraw::color (float $x, float $y, int $paintMethod) o bool ImagickDraw::comment (string $comment) o bool ImagickDraw::composite (int $compose, float $x, float $y, float $width, float $height, Imagick $compositeWand) o ImagickDraw::__construct (void ) o bool ImagickDraw::destroy (void ) o bool ImagickDraw::ellipse (float $ox, float $oy, float $rx, float $ry, float $start, float $end) o string ImagickDraw::getClipPath (void ) o int ImagickDraw::getClipRule (void ) o int ImagickDraw::getClipUnits (void ) o ImagickPixel ImagickDraw::getFillColor (void ) o float ImagickDraw::getFillOpacity (void ) o int ImagickDraw::getFillRule (void ) o string ImagickDraw::getFont (void ) o string ImagickDraw::getFontFamily (void ) o float ImagickDraw::getFontSize (void ) o public int ImagickDraw::getFontStretch (void ) o int ImagickDraw::getFontStyle (void ) o int ImagickDraw::getFontWeight (void ) o int ImagickDraw::getGravity (void ) o bool ImagickDraw::getStrokeAntialias (void ) o ImagickPixel ImagickDraw::getStrokeColor (void ) o array ImagickDraw::getStrokeDashArray (void ) o float ImagickDraw::getStrokeDashOffset (void ) o int ImagickDraw::getStrokeLineCap (void ) o int ImagickDraw::getStrokeLineJoin (void ) o int ImagickDraw::getStrokeMiterLimit (void ) o float ImagickDraw::getStrokeOpacity (void ) o float ImagickDraw::getStrokeWidth (void ) o int ImagickDraw::getTextAlignment (void ) o bool ImagickDraw::getTextAntialias (void ) o int ImagickDraw::getTextDecoration (void ) o string ImagickDraw::getTextEncoding (void ) o public float ImagickDraw::getTextInterlineSpacing (void ) o public float ImagickDraw::getTextInterwordSpacing (void ) o public float ImagickDraw::getTextKerning (void ) o ImagickPixel ImagickDraw::getTextUnderColor (void ) o string ImagickDraw::getVectorGraphics (void ) o bool ImagickDraw::line (float $sx, float $sy, float $ex, float $ey) o bool ImagickDraw::matte (float $x, float $y, int $paintMethod) o bool ImagickDraw::pathClose (void ) o bool ImagickDraw::pathCurveToAbsolute (float $x1, float $y1, float $x2, float $y2, float $x, float $y) o bool ImagickDraw::pathCurveToQuadraticBezierAbsolute (float $x1, float $y1, float $x, float $y) o bool ImagickDraw::pathCurveToQuadraticBezierRelative (float $x1, float $y1, float $x, float $y) o bool ImagickDraw::pathCurveToQuadraticBezierSmoothAbsolute (float $x, float $y) o bool ImagickDraw::pathCurveToQuadraticBezierSmoothRelative (float $x, float $y) o bool ImagickDraw::pathCurveToRelative (float $x1, float $y1, float $x2, float $y2, float $x, float $y) o bool ImagickDraw::pathCurveToSmoothAbsolute (float $x2, float $y2, float $x, float $y) o bool ImagickDraw::pathCurveToSmoothRelative (float $x2, float $y2, float $x, float $y) o bool ImagickDraw::pathEllipticArcAbsolute (float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y) o bool ImagickDraw::pathEllipticArcRelative (float $rx, float $ry, float $x_axis_rotation, bool $large_arc_flag, bool $sweep_flag, float $x, float $y) o bool ImagickDraw::pathFinish (void ) o bool ImagickDraw::pathLineToAbsolute (float $x, float $y) o bool ImagickDraw::pathLineToHorizontalAbsolute (float $x) o bool ImagickDraw::pathLineToHorizontalRelative (float $x) o bool ImagickDraw::pathLineToRelative (float $x, float $y) o bool ImagickDraw::pathLineToVerticalAbsolute (float $y) o bool ImagickDraw::pathLineToVerticalRelative (float $y) o bool ImagickDraw::pathMoveToAbsolute (float $x, float $y) o bool ImagickDraw::pathMoveToRelative (float $x, float $y) o bool ImagickDraw::pathStart (void ) o bool ImagickDraw::point (float $x, float $y) o bool ImagickDraw::polygon (array $coordinates) o bool ImagickDraw::polyline (array $coordinates) o bool ImagickDraw::pop (void ) o bool ImagickDraw::popClipPath (void ) o bool ImagickDraw::popDefs (void ) o bool ImagickDraw::popPattern (void ) o bool ImagickDraw::push (void ) o bool ImagickDraw::pushClipPath (string $clip_mask_id) o bool ImagickDraw::pushDefs (void ) o bool ImagickDraw::pushPattern (string $pattern_id, float $x, float $y, float $width, float $height) o bool ImagickDraw::rectangle (float $x1, float $y1, float $x2, float $y2) o bool ImagickDraw::render (void ) o public void ImagickDraw::resetVectorGraphics (void ) o bool ImagickDraw::rotate (float $degrees) o bool ImagickDraw::roundRectangle (float $x1, float $y1, float $x2, float $y2, float $rx, float $ry) o bool ImagickDraw::scale (float $x, float $y) o bool ImagickDraw::setClipPath (string $clip_mask) o bool ImagickDraw::setClipRule (int $fill_rule) o bool ImagickDraw::setClipUnits (int $clip_units) o bool ImagickDraw::setFillAlpha (float $opacity) o bool ImagickDraw::setFillColor (ImagickPixel $fill_pixel) o bool ImagickDraw::setFillOpacity (float $fillOpacity) o bool ImagickDraw::setFillPatternURL (string $fill_url) o bool ImagickDraw::setFillRule (int $fill_rule) o bool ImagickDraw::setFont (string $font_name) o bool ImagickDraw::setFontFamily (string $font_family) o bool ImagickDraw::setFontSize (float $pointsize) o bool ImagickDraw::setFontStretch (int $fontStretch) o bool ImagickDraw::setFontStyle (int $style) o bool ImagickDraw::setFontWeight (int $font_weight) o bool ImagickDraw::setGravity (int $gravity) o public void ImagickDraw::setResolution (string $x_resolution, string $y_resolution) o bool ImagickDraw::setStrokeAlpha (float $opacity) o bool ImagickDraw::setStrokeAntialias (bool $stroke_antialias) o bool ImagickDraw::setStrokeColor (ImagickPixel $stroke_pixel) o bool ImagickDraw::setStrokeDashArray (array $dashArray) o bool ImagickDraw::setStrokeDashOffset (float $dash_offset) o bool ImagickDraw::setStrokeLineCap (int $linecap) o bool ImagickDraw::setStrokeLineJoin (int $linejoin) o bool ImagickDraw::setStrokeMiterLimit (int $miterlimit) o bool ImagickDraw::setStrokeOpacity (float $stroke_opacity) o bool ImagickDraw::setStrokePatternURL (string $stroke_url) o bool ImagickDraw::setStrokeWidth (float $stroke_width) o bool ImagickDraw::setTextAlignment (int $alignment) o bool ImagickDraw::setTextAntialias (bool $antiAlias) o bool ImagickDraw::setTextDecoration (int $decoration) o bool ImagickDraw::setTextEncoding (string $encoding) o public void ImagickDraw::setTextInterlineSpacing (float $spacing) o public void ImagickDraw::setTextInterwordSpacing (float $spacing) o public void ImagickDraw::setTextKerning (float $kerning) o bool ImagickDraw::setTextUnderColor (ImagickPixel $under_color) o bool ImagickDraw::setVectorGraphics (string $xml) o bool ImagickDraw::setViewbox (int $x1, int $y1, int $x2, int $y2) o bool ImagickDraw::skewX (float $degrees) o bool ImagickDraw::skewY (float $degrees) o bool ImagickDraw::translate (float $x, float $y) PHP Documentation Group IMAGICKDRAW(3)
Man Page