image_surface...al_properties(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

✨ NAME ✨

Okay so welcome to the Arcan Lua API, bestie πŸ’– β€” this page is all about image_surface_initial_properties, which pulls up a table describing the initial storage state of whatever object you point it at. Cute, right? πŸŽ€


🌸 SYNOPSIS 🌸

proptbl
image_surface_initial_properties( vid )

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜•: this function is literally just an alias for image_surface_initial, and it's only still here for legacy reasons β€” like that one friend who refuses to leave the group chat 😭. Please go see image_surface_initial instead, fr fr. No cap, that's the one you actually want. πŸ’…


πŸ“ EXAMPLE πŸ“

Here's how it looks in action, bestie β€” go off πŸ‘‘

function image_surface_initial_properties0()
      a = load_image("test.png");
      resize_image(a, 32, 32);
      iprop = image_surface_initial_properties(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

(and yes, inital_h is spelled exactly like that in the original β€” not me, I don't make the rules πŸ™ˆ)


πŸ‘€ SEE ALSO πŸ‘€

Go read those too, they're iconic 🌟


πŸ’œ slay, that's the whole page πŸ’œ

This gem dropped in the image manual, October 2026 β€” periodt, no further questions 🫢✨

πŸ“¦ where this page comes from