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

FreeBSD Manual Pages

  
 
  

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

NAME
       copy_image_transform  -	Duplicate  the	transform chain	of one VID and
       transfer	it to another.

SYNOPSIS
       nil
       copy_image_transform( srcvid, dstvid )

DESCRIPTION
       This function traverses the entire transform chain of the srcvid, copy-
       ing each	transform step and attaches it to a new	chain in dstvid.

NOTES
       1      This will	also initiate a	recursive rendering re-order.

       2      This will	irrevocably alter the origw,origh  properties  in  the
	      destination  order  (in  order for the scale transform to	be us-
	      able).

       3      The original transform chain in the destination VID  will	be re-
	      moved.

       4      src and dst cannot be the	same VID .

       5      Transformations are stored relative of the source	objects	 coor-
	      dinate  space  and, with the exception of	scale, won't be	trans-
	      lated.

EXAMPLE
       function	copy_image_transform0()
	     a = fill_surface(32, 32, 255, 0, 0);
	     blend_image(a, 0.5);
	     move_image(a, 200,	200, 100);
	     rotate_image(a, 350, 100);
	     blend_image(a, 1.0, 100);
	     b = fill_surface(32, 32, 0, 255, 0);
	     copy_image_transform(a, b);
	     instant_image_transform(a);
       end

MISUSE
       function	copy_image_transform0()
	     a = fill_surface(32, 32, 0, 255, 0);
	     copy_image_transform(a, a);
       end

MISUSE
       function	copy_image_transform1()
	     copy_image_transform(-10, nil);
       end

SEE ALSO:
       copy_surface_properties(3)

image				  April	2025	       copy_image_transform(3)

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

home | help