Well i making this program where there is picture in the middle. the background is black and the background of the picture is white. no compound colors. the form(background) changes colors. i want the part of the picture to change as well...
Printable View
Well i making this program where there is picture in the middle. the background is black and the background of the picture is white. no compound colors. the form(background) changes colors. i want the part of the picture to change as well...
makes no sence. If the background is black rgb(0,0,0) and you change it to (0,0,1) ... now you want the pic to have black background?
Do this: look up example of transblit, look up deleting objects, fix memory leek in object create and delete within transblit. After that make white your transparent color wight when you load it and keep calling it as the backcolor changes.
hey
the easier way was take the picture, (i dont know what it is), and make the background on the picture transparant, then when the background changes, it will shine through on the picture. i cant think of any easier way to do it, for coding changes in pictures is much harder than altering the pic itself.
Here's the pic how to make it Transparent I tried to make it transparent with Photoshop i got very far, then tried to test it still uncomplete but it didnt work...
in my experience with grafix you gatta save it as .gif
then i think you can set some .gif transparencys, that should work. that just my guess, im goin to be doin the same thing with my sad little game.
I suggested transblit to make the color on the pic transparent because you can alter the transcolor easier and keep the pic on top through the operation of backcolor change.
Keep one thing in mind using gif kiss floodfill goodby on that pic - it won't work.