Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by termix (Beadle)
on Dec 26, 2001 at 18:32 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found