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_CLIP_EXTENTS(3)							 1						     CAIRO_CLIP_EXTENTS(3)

CairoContext::clipExtents - Computes the area inside the current clip

       Object oriented style (method):

SYNOPSIS
public array CairoContext::clipExtents (void ) DESCRIPTION
Procedural style: array cairo_clip_extents (CairoContext $context) Computes a bounding box in user coordinates covering the area inside the current clip. PARAMETERS
o $context - A valid CairoContext object RETURN VALUES
An array containing the (float)x1, (float)y1, (float)x2, (float)y2, coordinates covering the area inside the current clip EXAMPLES
Example #1 Object oriented style <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $context = new CairoContext($surface); var_dump($context->clipExtents()); ?> The above example will output something similar to: array(4) { [0]=> float(0) [1]=> float(0) [2]=> float(50) [3]=> float(50) } Example #2 Procedural style <?php $surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $context = cairo_create($surface); var_dump(cairo_clip_extents($context)); ?> The above example will output something similar to: array(4) { [0]=> float(0) [1]=> float(0) [2]=> float(50) [3]=> float(50) } SEE ALSO
CairoContext::clip. PHP Documentation Group CAIRO_CLIP_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