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

FreeBSD Manual Pages

  
 
  

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

NAME
       image_surface_initial - Retrieve	a table	describing the initial storage
       state for the specified object.

SYNOPSIS
       proptbl
       image_surface_initial( vid )

DESCRIPTION
       The system distinguishes	between	transformations	that have been applied
       after  an  object was created and the initial state of the object. This
       function	retrieves the values associated	with this  initial  state  and
       returns it as a property	table.

EXAMPLE
       function	image_surface_initial0()
	     a = load_image("test.png");
	     resize_image(a, 32, 32);
	     iprop = image_surface_initial(a);
	     cprop = image_surface_properties(a);
	     print(string.format("initial_w: %d, inital_h: %d, current_w: %d, current_h: %d",
		   iprop.width,	iprop.height, cprop.width, cprop.height));
       end

SEE ALSO:
       image_surface_resolve(3)	image_surface_properties(3)

image				  April	2025	      image_surface_initial(3)

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

home | help