GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
resize_image(3) Arcan Lua API resize_image(3)

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

scale_image(3)

June 2022 image

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.