CairoContext::fillExtents
cairo_fill_extents
(PECL cairo >= 0.1.0)
CairoContext::fillExtents -- cairo_fill_extents — Computes the filled area
Description
Object oriented style (method):
Procedural style:
Computes a bounding box in user coordinates covering the area that would be affected, (the “inked” area), by a CairoContext::fill() operation given the current path and fill parameters. If the current path is empty, returns an empty rectangle (0,0,0,0). Surface dimensions and clipping are not taken into account.
Contrast with CairoContext::pathExtents(), which is similar, but returns non-zero extents for some paths with no inked area, (such as a simple line segment).
Note that CairoContext::fillExtents() must necessarily do more work to compute the precise inked areas in light of the fill rule, so CairoContext::pathExtents() may be more desirable for sake of performance if the non-inked path extents are desired.
Parameters
-
context
-
A valid CairoContext object created with CairoContext::__construct() or cairo_create()
Return Values
An array with the coordinates of the afected area
Examples
Example #1 Object oriented style
<?php
/* ... */
?>
The above example will output something similar to:
...
Example #2 Procedural style
<?php
/* ... */
?>
The above example will output something similar to:
...
See Also
- CairoContext::fill() - Fills the current path
- CairoContext::setFillRule() - The setFillRule purpose
- CairoContext::fillPreserve() - Fills and preserve the current path
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Обработка и генерация изображений
- Cairo
- Функция CairoContext::appendPath() - Appends a path to current path
- Функция CairoContext::arc() - Adds a circular arc
- Функция CairoContext::arcNegative() - Adds a negative arc
- Функция CairoContext::clip() - Establishes a new clip region
- Функция CairoContext::clipExtents() - Computes the area inside the current clip
- Функция CairoContext::clipPreserve() - Establishes a new clip region from the current clip
- Функция CairoContext::clipRectangleList() - Retrieves the current clip as a list of rectangles
- Функция CairoContext::closePath() - Closes the current path
- Функция CairoContext::__construct() - Creates a new CairoContext
- Функция CairoContext::copyPage() - Emits the current page
- Функция CairoContext::copyPath() - Creates a copy of the current path
- Функция CairoContext::copyPathFlat() - Gets a flattened copy of the current path
- Функция CairoContext::curveTo() - Adds a curve
- Функция CairoContext::deviceToUser() - Transform a coordinate
- Функция CairoContext::deviceToUserDistance() - Transform a distance
- Функция CairoContext::fill() - Fills the current path
- Функция CairoContext::fillExtents() - Computes the filled area
- Функция CairoContext::fillPreserve() - Fills and preserve the current path
- Функция CairoContext::fontExtents() - Get the font extents
- Функция CairoContext::getAntialias() - Retrives the current antialias mode
- Функция CairoContext::getCurrentPoint() - The getCurrentPoint purpose
- Функция CairoContext::getDash() - The getDash purpose
- Функция CairoContext::getDashCount() - The getDashCount purpose
- Функция CairoContext::getFillRule() - The getFillRule purpose
- Функция CairoContext::getFontFace() - The getFontFace purpose
- Функция CairoContext::getFontMatrix() - The getFontMatrix purpose
- Функция CairoContext::getFontOptions() - The getFontOptions purpose
- Функция CairoContext::getGroupTarget() - The getGroupTarget purpose
- Функция CairoContext::getLineCap() - The getLineCap purpose
- Функция CairoContext::getLineJoin() - The getLineJoin purpose
- Функция CairoContext::getLineWidth() - The getLineWidth purpose
- Функция CairoContext::getMatrix() - The getMatrix purpose
- Функция CairoContext::getMiterLimit() - The getMiterLimit purpose
- Функция CairoContext::getOperator() - The getOperator purpose
- Функция CairoContext::getScaledFont() - The getScaledFont purpose
- Функция CairoContext::getSource() - The getSource purpose
- Функция CairoContext::getTarget() - The getTarget purpose
- Функция CairoContext::getTolerance() - The getTolerance purpose
- Функция CairoContext::glyphPath() - The glyphPath purpose
- Функция CairoContext::hasCurrentPoint() - The hasCurrentPoint purpose
- Функция CairoContext::identityMatrix() - The identityMatrix purpose
- Функция CairoContext::inFill() - The inFill purpose
- Функция CairoContext::inStroke() - The inStroke purpose
- Функция CairoContext::lineTo() - The lineTo purpose
- Функция CairoContext::mask() - The mask purpose
- Функция CairoContext::maskSurface() - The maskSurface purpose
- Функция CairoContext::moveTo() - The moveTo purpose
- Функция CairoContext::newPath() - The newPath purpose
- Функция CairoContext::newSubPath() - The newSubPath purpose
- Функция CairoContext::paint() - The paint purpose
- Функция CairoContext::paintWithAlpha() - The paintWithAlpha purpose
- Функция CairoContext::pathExtents() - The pathExtents purpose
- Функция CairoContext::popGroup() - The popGroup purpose
- Функция CairoContext::popGroupToSource() - The popGroupToSource purpose
- Функция CairoContext::pushGroup() - The pushGroup purpose
- Функция CairoContext::pushGroupWithContent() - The pushGroupWithContent purpose
- Функция CairoContext::rectangle() - The rectangle purpose
- Функция CairoContext::relCurveTo() - The relCurveTo purpose
- Функция CairoContext::relLineTo() - The relLineTo purpose
- Функция CairoContext::relMoveTo() - The relMoveTo purpose
- Функция CairoContext::resetClip() - The resetClip purpose
- Функция CairoContext::restore() - The restore purpose
- Функция CairoContext::rotate() - The rotate purpose
- Функция CairoContext::save() - The save purpose
- Функция CairoContext::scale() - The scale purpose
- Функция CairoContext::selectFontFace() - The selectFontFace purpose
- Функция CairoContext::setAntialias() - The setAntialias purpose
- Функция CairoContext::setDash() - The setDash purpose
- Функция CairoContext::setFillRule() - The setFillRule purpose
- Функция CairoContext::setFontFace() - The setFontFace purpose
- Функция CairoContext::setFontMatrix() - The setFontMatrix purpose
- Функция CairoContext::setFontOptions() - The setFontOptions purpose
- Функция CairoContext::setFontSize() - The setFontSize purpose
- Функция CairoContext::setLineCap() - The setLineCap purpose
- Функция CairoContext::setLineJoin() - The setLineJoin purpose
- Функция CairoContext::setLineWidth() - The setLineWidth purpose
- Функция CairoContext::setMatrix() - The setMatrix purpose
- Функция CairoContext::setMiterLimit() - The setMiterLimit purpose
- Функция CairoContext::setOperator() - The setOperator purpose
- Функция CairoContext::setScaledFont() - The setScaledFont purpose
- Функция CairoContext::setSource() - The setSource purpose
- Функция CairoContext::setSourceRGB() - The setSourceRGB purpose
- Функция CairoContext::setSourceRGBA() - The setSourceRGBA purpose
- Функция CairoContext::setSourceSurface() - The setSourceSurface purpose
- Функция CairoContext::setTolerance() - The setTolerance purpose
- Функция CairoContext::showPage() - The showPage purpose
- Функция CairoContext::showText() - The showText purpose
- Функция CairoContext::status() - The status purpose
- Функция CairoContext::stroke() - The stroke purpose
- Функция CairoContext::strokeExtents() - The strokeExtents purpose
- Функция CairoContext::strokePreserve() - The strokePreserve purpose
- Функция CairoContext::textExtents() - The textExtents purpose
- Функция CairoContext::textPath() - The textPath purpose
- Функция CairoContext::transform() - The transform purpose
- Функция CairoContext::translate() - The translate purpose
- Функция CairoContext::userToDevice() - The userToDevice purpose
- Функция CairoContext::userToDeviceDistance() - The userToDeviceDistance purpose
Коментарии
404 Not Found