[Request] MM Feature Request - Load and recognise image icon
Posted: Thu Jan 15, 2009 7:13 am
This feature would be very handy indeed, the ability to load graphic image files (I need it for type .tga files), and be able to scan for that image in a given section of the GUI.
For example, party member icons on mini-maps: looking in the mini-map section and looking for party member icons. It would return the pos_x, pos_y relative to the area being scanned in.
Now this is what I plan to use it for, in Shaiya when you create a party it looks for other party members and tries to move to the closest member. This would be extremely handy, for example I could have a Virtual Machine running a healer, and have them follow the party, healing whenever required.
It would also have advantages with AoE groups and mayb even PvP.
Here are my function prototypes that may be handy:
What do u guys think?
edit:
It would be good if it supported images that were sprite sheets.
And if this was implemented it could maybe even get character recognition working for Bitmap-based fonts. ^_^
For example, party member icons on mini-maps: looking in the mini-map section and looking for party member icons. It would return the pos_x, pos_y relative to the area being scanned in.
Now this is what I plan to use it for, in Shaiya when you create a party it looks for other party members and tries to move to the closest member. This would be extremely handy, for example I could have a Virtual Machine running a healer, and have them follow the party, healing whenever required.
It would also have advantages with AoE groups and mayb even PvP.
Here are my function prototypes that may be handy:
Code: Select all
-- loads icon.
-- path of image file.
-- return icon resource.
loadIcon(path)
-- scan a rectangle for the icon specified.
-- @param hadc handle device context.
-- @param point x and y coords of screen offset.
-- @param rectangle width and height of rectangle to be scanned.
-- @param icon resource to be scanned.
-- @returns a table of x,y coordinates of icons found, false otherwise.
scanRectForIcon(hdc, point, rectangle, icon)
edit:
It would be good if it supported images that were sprite sheets.
And if this was implemented it could maybe even get character recognition working for Bitmap-based fonts. ^_^