svg_path_get_bounding_box


Description:


[ Version ( since = "0.0.1" ) ]
public bool svg_path_get_bounding_box (string path, int x1, int x2, int y1, int y2) throws Error

Returns the bounding box of an SVG path.

As this is meant for display cutouts we operate on integer (whole pixel) values. When parsing fails, `FALSE` is returned and `error` contains the error information.

Parameters:

path

An SVG path

x1

The lower x coordinate

x2

The upper x coordinate

y1

The lower y coordinate

y2

The upper y coordinate

Returns:

`TRUE` when parsing was successful, `FALSE` otherwise.

See https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths for path syntax introduction.


Namespace: Gm
Package: gmobile