Gimp.Drawable.prototype.mask_intersect
function mask_intersect(): [ok: Boolean, x: Number(gint), y: Number(gint), width: Number(gint), height: Number(gint)] {
// Gjs wrapper for gimp_drawable_mask_intersect()
}
Find the bounding box of the current selection in relation to the specified drawable.
This procedure returns whether there is an intersection between the drawable and the selection. Unlike Gimp.Drawable.prototype.mask_bounds, the intersection's bounds are returned as x, y, width, height. If there is no selection this function returns TRUE and the returned bounds are the extents of the whole drawable.
Since 2.2
- ok
TRUE if the returned area is not empty.
- x
x coordinate of the upper left corner of the intersection.
- y
y coordinate of the upper left corner of the intersection.
- width
width of the intersection.
- height
height of the intersection.