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

FreeBSD Manual Pages

  
 
  

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

NAME
       resize_image - Change object dimensions based on	absolute pixel values.

SYNOPSIS
       nil
       resize_image( vobj, new_w, new_h, time, interp )

DESCRIPTION
       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	,  IN-
       TERP_EXPINOUT , INTERP_SMOOTHSTEP ).

NOTES
       1      the  end	dimensions can still be	manipulated through the	vertex
	      shader stage, but	such changes do	not affect other  engine  fea-
	      tures (like picking and other forms of collision detection).

EXAMPLE
       function	resize_image0()
	     a = fill_surface(64, 64, 0, 255, 0);
	     resize_image(a, 128, 128, 100);
	     show_image(a);
       end

SEE ALSO:
       scale_image(3)

image				  April	2025		       resize_image(3)

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

home | help