Hey,
Im trying to think of a simple way to overlay an image within a picture box... i basically have a small tileset editor and i want to overlay images over to show the collision detection, but no matter how much i try i cant find any information on merging images with alpha channels...
Any information or links would be great, both are in PNG format, and the bottom layer (the tileset image) would have small transparent bits, the 2nd layer would be a 40% transparent red colour in various shapes...
Loading
Mike GoldPosted Jun 8, 2008, 9:29 PM
Hi,
You can get a hold of the graphics object in OnPaint and do the combining here, or you can combine the channels and save it as a bitmap, then assign it to the picturebox. You'll need to lock the bits of the image to do any kind of image processing though. Check out this article on codeproject to guide you.