How do you make certain colors of a bitmap not show up in C#
Posted: Mon Feb 01, 2010 6:47 pm
Note that I am using Visual C# 2008 Express Edition right now.
Hey guys, right now I'm working on a level editor and my tile set bitmap is set inside a Picture Box with the name of myTileSetPic.
A problem I have encountered is that with my level editor there are tiles like trees and stuff, but my tiles that are trees have the design of a tree, and then the rest of the tile is white. This is not transparency, but it is just white. What I need to figure out how to do is to take the whiteness of the bitmap, and sort of, cancel it out I guess. I basically need to make it so you can not see the white part of the tile. I have no idea how the hell to do this, so please tell me possibly a way to do this. Thanks.
Hey guys, right now I'm working on a level editor and my tile set bitmap is set inside a Picture Box with the name of myTileSetPic.
A problem I have encountered is that with my level editor there are tiles like trees and stuff, but my tiles that are trees have the design of a tree, and then the rest of the tile is white. This is not transparency, but it is just white. What I need to figure out how to do is to take the whiteness of the bitmap, and sort of, cancel it out I guess. I basically need to make it so you can not see the white part of the tile. I have no idea how the hell to do this, so please tell me possibly a way to do this. Thanks.