resize_image - Change object dimensions based on absolute pixel values.
nil
resize_image( vobj, new_w, new_h, time, interp )
This transformation, internally remapped to the scale_image call but with scale
values based on the initial dimensions of the object, sets a new desired
output dimension. Interp can be set to one of the constants (
INTERP_LINEAR , INTERP_SINE , INTERP_EXPIN ,
INTERP_EXPOUT , INTERP_EXPINOUT , INTERP_SMOOTHSTEP ).
- 1
- the end dimensions can still be manipulated through the vertex shader
stage, but such changes do not affect other engine features (like picking
and other forms of collision detection).
function resize_image0()
a = fill_surface(64, 64, 0, 255, 0);
resize_image(a, 128, 128, 100);
show_image(a);
end