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
scale_image(3) Arcan Lua API scale_image(3)

scale_image - Set the current scale-factor for the specified image.

nil
scale_image( vid, sx, sy, time, interp )

Alter the scale transform for vid . These values are relative to the initial dimensions for the object in question, while function such as resize_image internally converts the absolute values to relative scale. Interp can be set to one of the constants ( INTERP_LINEAR , INTERP_SINE , INTERP_EXPIN , INTERP_EXPOUT , INTERP_EXPINOUT , INTERP_SMOOTHSTEP ).

function scale_image0()
      a = fill_surface(128, 128, 0, 255, 0, 64, 64);
      scale_image(a, 2.0, 2.0, 100);
      show_image(a);
end

resize_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.