convert_bounds_to_item_space


Description:

public void convert_bounds_to_item_space (CanvasItem item, ref CanvasBounds bounds)

Converts the given bounds in the canvas coordinate space to a bounding box in item space.

This is useful in the item paint methods to convert the bounds to be painted to the item's coordinate space.

Parameters:

this

a Canvas.

item

a CanvasItem.

bounds

the bounds in canvas coordinate space, to be converted.