IfYouSaySo
Well-known member
I'm trying to create a chessboard control. The basic idea is:
1) use a set of B/W texture bitmaps to make the squares look like wood.
2) Draw over top of the texture image a rectangle with a color that is semi-transparent. I use two user defined colors; and this gives me the light and dark squares for the board.
3) Use freely available .png images for the chess-men. These already have the transparency built in. There is only one pawn, one rook, one bishop, one queen, one king. The image is white with black outline and black shading.
4) Create the "white" and "black" chess-men from these images by a similar technique to step (2) above.
So I've got step 1-3 done. I'm stuck on step 4. I think I need to be using the Image's Palette (maybe even in step 2 I should do that) but I'm not quite sure if that is even right, or if so how it works. The MSDN docs are very vague on explaining palettes as used with images). Or maybe there is some other technique that I'm not aware of.
Any help appreciated!
1) use a set of B/W texture bitmaps to make the squares look like wood.
2) Draw over top of the texture image a rectangle with a color that is semi-transparent. I use two user defined colors; and this gives me the light and dark squares for the board.
3) Use freely available .png images for the chess-men. These already have the transparency built in. There is only one pawn, one rook, one bishop, one queen, one king. The image is white with black outline and black shading.
4) Create the "white" and "black" chess-men from these images by a similar technique to step (2) above.
So I've got step 1-3 done. I'm stuck on step 4. I think I need to be using the Image's Palette (maybe even in step 2 I should do that) but I'm not quite sure if that is even right, or if so how it works. The MSDN docs are very vague on explaining palettes as used with images). Or maybe there is some other technique that I'm not aware of.
Any help appreciated!