Hi All,
Searching the forum there seems to be a lot of people who want a 'magic wand' feature in the Sprite Editor -- this request is NOT about that.
What I want to achieve is the following: I want the user to be able to take a picture of an object against a white backgroud (usermedia object -- check), have that picture saved to a sprite (again usermedia object -- check), at which point they can then use a 'magic wand' type feature to isolate an object in the picture in order to then cut the object out and paste it into a sprite with a transparent background (this part -- ???)
Off the top, perhaps some sort of floodfill algorithm to 'select' all the white (however, there may be varying degrees of white in the photo -- so there would need to be some sort of tolerance). Next, I wonder how I could get the selected object into a transparent background sprite/image? Through the paster/canvas object?
Maybe there is an easier way? Maybe the problem could be changed to achieve a similar result?
If so, please let me know!
-Remy