|
-
Nov 12th, 2002, 12:40 PM
#1
Thread Starter
Junior Member
Hi there,****REASOLVED****
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...
Last edited by Da_Man; Nov 14th, 2002 at 12:26 PM.
-
Nov 13th, 2002, 02:50 PM
#2
Hyperactive Member
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.
-
Nov 13th, 2002, 07:07 PM
#3
Member
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.
Wombat
"I like to go to the schoolyard where i can watch the little kids jumping and screaming....but they dont know im using blanks"
"Before you set yourself on fire, remember to take off your shoes... nothing smells worse than burning rubber."
"They advertise that certain laundry detergents can take blood stains out of clothes, i say that if you have blood stains on your clothes, maybe your laundry is the least of your worries."
Sometimes when I'm driving around I see a sign that says, CAUTION: SMALL CHILDREN PLAYING. I slow down, and then it occurs to me: I'm not afraid of small children.
"My programs dont have bugs, they have random features" - MisianThrop
"The good thing about our ticket to the future is that it's always blank" - Trigun
-
Nov 14th, 2002, 11:26 AM
#4
Thread Starter
Junior Member
-
Nov 14th, 2002, 11:48 AM
#5
Lively Member
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.
-
Nov 14th, 2002, 12:16 PM
#6
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|