Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
scale_image(3)			 Arcan Lua API			scale_image(3)

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

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

DESCRIPTION
       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 ).

EXAMPLE
       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

SEE ALSO:
       resize_image(3)

image				  April	2025			scale_image(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=scale_image&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help