I am creating a game and too put the character on the screen i want to use transparancy the player is in a round ball but the black parts around the ball are still there, how to make a transparant part with BITBLT?
Printable View
I am creating a game and too put the character on the screen i want to use transparancy the player is in a round ball but the black parts around the ball are still there, how to make a transparant part with BITBLT?
you don't. bitblt doesn't recolor things, it just moves them. you need to edit your image with some tool to make the parts transparent that you want transparent.
Your images should be in the Gif-format (or another format that uses transparency) and you make the part of your image trasparent with your grapjics program like Adobe photoshop, Corel photopaint, etc.
this won't work in VB.NET, I'cve tried it but it do not manage to get a part of an image transparent, it just gets the color of the form.