PHP » GoLang |
login |
register |
about
|
GoLang CairoContext::clipExtents
request it (522)
GoLang replacement for PHP's CairoContext::clipExtents
[edit | history]
CairoContext::clipExtentscairo_clip_extents(PECL cairo >= 0.1.0) CairoContext::clipExtents -- cairo_clip_extents — Computes the area inside the current clip DescriptionObject oriented style (method):
public array CairoContext::clipExtents
( void
)
Procedural style: Computes a bounding box in user coordinates covering the area inside the current clip. Parameters
Return ValuesAn 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
<?phpThe 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
<?phpThe above example will output something similar to:
array(4) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(50)
[3]=>
float(50)
}
|
more
Most requested
more
Last requests
|