|
Image processing and transparency |
zyklus_
Member #8,481
April 2007
|
I've been having problems when working with transparency when doing image processing... The game consists of two boards (one for now). A board is a grid of 6x12 pieces, but 8x14 for padding. The pieces are connected when neighboring like pieces. The drawing process is done for each piece, on a temporary bitmap. Then it is mask_blitted onto the video. All BMP versions of the images are in 256 colors, I am also running the game in 32bit color. 1. Here is my game, no image processing: http://zyklus.acaro.org/host/puyo/debug00.jpg (boring) I get the mask that I want, but it destroys everything else X| EDIT: here is some code:
|
Bob
Free Market Evangelist
September 2000
|
Quote:
I get the mask that I want, but it destroys everything else X| Try playing around with the last parameter of set_invert_blender(). 128 would be a good value to try. -- |
zyklus_
Member #8,481
April 2007
|
I've already tried that, and here's how it looked: http://zyklus.acaro.org/host/puyo/debug06.jpg What I don't understand is why, when I try to draw a masked bitmap with draw_sprite, the magenta changes into yellow Is there any way I can tell a specific bitmap to ignore or change it's transparency color? EDIT: Ah, nvm; problem solved. It was a discreet problem and a slight programming error. |
|