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

CAIRO_FONT_EXTENTS(3)							 1						     CAIRO_FONT_EXTENTS(3)

CairoContext::fontExtents - Get the font extents

       Object oriented style (method):

SYNOPSIS
public array CairoContext::fontExtents (void ) DESCRIPTION
Procedural style: array cairo_font_extents (CairoContext $context) Gets the font extents for the currently selected font. PARAMETERS
o $context - Description... RETURN VALUES
An array containing the font extents for the current font. EXAMPLES
Example #1 Object oriented style <?php $sur = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $con = new CairoContext($sur); var_dump($con->fontExtents()); ?> The above example will output something similar to: array(5) { ["ascent"]=> float(10) ["descent"]=> float(3) ["height"]=> float(13.3125) ["max_x_advance"]=> float(26.65625) ["max_y_advance"]=> float(0) } Example #2 Procedural style <?php $sur = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $con = cairo_create($sur); var_dump(cairo_font_extents($con)); ?> The above example will output something similar to: array(5) { ["ascent"]=> float(10) ["descent"]=> float(3) ["height"]=> float(13.3125) ["max_x_advance"]=> float(26.65625) ["max_y_advance"]=> float(0) } SEE ALSO
Classname::Method. PHP Documentation Group CAIRO_FONT_EXTENTS(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

matrix pointer

Can anyone tell me what the following statements do? float (*tab); tab=(float (*)) calloc(MAXCLASS, (MAXCLASS+1)*sizeof(float)); (3 Replies)
Discussion started by: littleboyblu
3 Replies

2. Red Hat

What is float IP?

:confused:We have two servers one active and one stand by as follows Active 202.61.9.9 Stand by 202.61.9.10 Float IP 202.61.9.8 What is use of this float IP? How it is configured? (1 Reply)
Discussion started by: manalisharmabe
1 Replies

3. Programming

passing float parameter

I am surprised by GCC (this is ver. 4.2.4, Ubuntu 32 bit Intel) when a function declares a float parameter and it's prototype is missing, the parameters are messed up. Please see my code below: ~/test$ cat x1.c #include <stdio.h> #include <stdlib.h> set_p(int p1, float p2, int p3, int p4)... (7 Replies)
Discussion started by: migurus
7 Replies

4. Programming

Changing type name

In C++, how can I change the type with another name For example How can I declaring an object real which would be the same as declaring it float (5 Replies)
Discussion started by: kristinu
5 Replies