transparancy

What would one have to do if one wanted thier graphics to be made transperant useing c++? I have the only graphics program that I can afford right now. But it doesn't have any way (that I have found) tomake anything transparent. What would you do?

Comments

: What would one have to do if one wanted thier graphics to be made : transperant useing c++? I have the only graphics program that I can : afford right now. But it doesn't have any way (that I have found) to: make anything transparent. What would you do?: :

: What would one have to do if one wanted thier graphics to be made : transperant useing c++? I have the only graphics program that I can : afford right now. But it doesn't have any way (that I have found) to: make anything transparent. What would you do?: :

If I understand what you want correctly, you want to have an image that, when displayed in some program you write, has parts that are transparent.

Note: I don't know c/c++ well, I prefer assembly, so expect no code.

Assuming you're using a bitmap of some sort:First, pick a color to be transparent, for example, in rrggbb format:ffffffwhich happens to be whiteMake a matrix of whatever size you want to display, and place your background image in it, with each element corrisponding to one pixel. Then place your bitmap in the matrix, excluding all pixels of the color you chose with a simple loop, with an if statment like (hope I get this right, I know I said no code, but here's some anyway):if (pixel!=ffff){place pixel in matrix}