> I am trying to write an inventory with a semi transparent image in the
> background that shows the black for completely transparent. So far,
> though, I have been unsuccessful (with the background). The idea is to
> make it blend in with the rest of the semi-transparent hud. How do I do
> that?

A common graphic technique for overlaying one image on top of another is to
create a mask of the bottom image.  The mask will be black in places where
the lower image is anything but black.  The mask is usually a few pixels
wider than the non-black parts of the lower image.  Draw the mask (to
blacken areas where you will drawing something on top of it), draw the
second layer, then to remove the second layer, redraw the entire lower image
(not just the part that got masked out).

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to