Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Masked Images

I'm trying to make a game in which I have little images displayed on top of another image.  I want to create these images in Paint.  I also want to only display specific parts of these images such that you can see the other image behind it.  Thus, I can have a person in the center of one image and just display the person, with none of the white space.  Any ideas?

John Schwendinger
Saturday, November 29, 2003

Check out Bitmap.MakeTransparent or ImageList.TransparentColor.  The idea with these is simple -- you specify a color from your bitmap that shows up as transparent when rendered. 

For fancier transparencies, use the alpha channel or check out ImageAttributes.

SomeBody
Saturday, November 29, 2003

*  Recent Topics

*  Fog Creek Home