URL:
<http://gna.org/bugs/?17387>
Summary: way for scripts to determine image dimensions
Project: Battle for Wesnoth
Submitted by: elvish_pillager
Submitted on: Thu 23 Dec 2010 04:49:28 PM GMT
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.3+svn
Operating System: Ubuntu
_______________________________________________________
Details:
I want to (for instance) take one arbitrary image and then use ~BLIT() to add
a smaller image in the center of the given image. But ~BLIT() takes
coordinates from the top left of the dst image, and I don't necessarily know
its dimensions, so I can't find the center.
I would like a Lua function or WML tag that takes the name of an image and
outputs the width and height of that image.
The example above is just a simple example; this feature would help me
enormously with my fancy image processing.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17387>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs