image_surface_resolve - Retrieve current image properties in world-space.
proptbl
image_surface_resolve( vid )
Most of the surface_ class of functions return results in object space. This
function will traverse the related set of object hierarchies and resolve the
world-space ones that will be used when compositing the output.
- 1
- The fields used in proptbl are: (x, y, z, width, height, depth, angle,
roll, pitch, yaw, opacity and order).
- 2
- this function has a highly variable cost since the rendering pipeline
normallys caches both resolved properties and resulting transformation
matrices, if possible.
function image_surface_resolve0()
a = fill_surface(32, 32, 255, 0, 0);
b = fill_surface(64, 64, 0, 255, 0);
link_image(b, a);
move_image(a, 100, 100);
move_image(b, 50, 50);
props = image_surface_resolve(b);
print(string.format("%d %d", props.x, props.y));
end
image_surface_initial_properties(3) image_surface_properties(3)