Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cairo_clip_extents(3) [php 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)

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

7 More Discussions You Might Find Interesting

1. Programming

Need help with C program

Can someone tell how do I get my function called "float OT_hours (float hrs)" to output the number of hours worked for each employee using an array. I have a function called "void input_hours (int clock_number,float Hours)" that asks the user to input the number of hours for each employee. Do I... (1 Reply)
Discussion started by: JJJ
1 Replies

2. Solaris

can array store float point numbers

Hi all, I have doubt can array in a shell script can store floating point numbers. i have tired. but i unable to work it out. Please help me regarding this Thank U Naree (1 Reply)
Discussion started by: naree
1 Replies

3. Shell Programming and Scripting

Problem with float calculation and awk

Hi All, can some body help me to script the below logic. Basically am facing problem with float calculation. Also i need this to be done inside a single awk. I tried lot of tuning but still nothing is getting displayed, nor any errors param=50 value=19.23 for(i=0;i<4;i++) {... (2 Replies)
Discussion started by: jisha
2 Replies

4. 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

5. UNIX for Dummies Questions & Answers

merge lines within a file that start with a similar pattern

Hello! i have a text file.. which contains the data as follows i want to merge the declarations lines pertaining to one datatype in to a single line as follows i've searched the forum for help.. but couldn't find much help.. how can i do this?? (1 Reply)
Discussion started by: a_ba
1 Replies

6. 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

7. Shell Programming and Scripting

Float array sum

Hi everyone, I'm having some trouble with float array. When i try to get the array sum with float numbers i get this error line 39: soma + 2.34 | bc: syntax error: invalid arithmetic operator (error token is ".34 | bc") 26 Somar() { 27 echo "Quantos numeros deseja somar?" 28 read... (4 Replies)
Discussion started by: berveglieri
4 Replies