Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cairoFillExtents

cairoFillExtents


Description

Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a cairoFill 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.

Usage

cairoFillExtents(cr)

Arguments

cr

[Cairo] a cairo context

Details

Contrast with cairoPathExtents, which is similar, but returns non-zero extents for some paths with no inked area, (such as a simple line segment).

Note that cairoFillExtents must necessarily do more work to compute the precise inked areas in light of the fill rule, so cairoPathExtents may be more desirable for sake of performance if the non-inked path extents are desired.

Value

A list containing the following elements:

x1

[numeric] left of the resulting extents

y1

[numeric] top of the resulting extents

x2

[numeric] right of the resulting extents

y2

[numeric] bottom of the resulting extents

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.