Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Tk::Photo and GIFs - is a pixel transparent or black?

by termix (Beadle)
on Dec 26, 2001 at 18:32 UTC ( #134396=note: print w/replies, xml ) Need Help??


in reply to Tk::Photo and GIFs - is a pixel transparent or black?

Not one of my ideas, but our designers say you can always use something 'near' black for painting black color in your graphics (something like (R,g,b)=(0,0,1)). This allows them to then evaluate the flattened image to see where the 'transparency' (0,0,0) is versus the real black (0,0,1).

I believe you can also put to use an image map (a black & white image that identifies the 'hot' areas in the graphic. Increases the amount of image data you need to keep, but allows you more flexibility (i.e. you can detect which portion of the monk has been hit for 'Soldier of Fortune' style hit detection).
-- termix

  • Comment on Re: Tk::Photo and GIFs - is a pixel transparent or black?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://134396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2023-06-03 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (17 votes). Check out past polls.

    Notices?