Gimp.Brush.prototype.get_aspect_ratio
function get_aspect_ratio(): [ok: Boolean, aspect_ratio: Number(gdouble)] {
// Gjs wrapper for gimp_brush_get_aspect_ratio()
}
Gets the aspect ratio of a generated brush.
Gets the aspect ratio of a generated brush. Returns an error when called for a non-parametric brush. The aspect ratio is a double between 0.0 and 1000.0.
Since 2.4
- ok
TRUE on success.
- aspect_ratio
The aspect ratio of the brush.