Alex
04-18-2002, 02:04 PM
How to make the picture become transparent in DirectDraw?
I have a picture will Green(RGB:0,255,0) background but while i set the low and high of DDCOLORKEY to "&H7E0", the picture is become transparent but it leave a green border around the character of the picture?
Original Picture
http://www.angelfire.com/super2/alexfung/images/Original.JPG
After Transparent
http://www.angelfire.com/super2/alexfung/images/After.JPG
Have i do something wrong of the value of DDCOLORKEY?
Can any one tell me how to set the value correctly?
Thanks a lot!
I have a picture will Green(RGB:0,255,0) background but while i set the low and high of DDCOLORKEY to "&H7E0", the picture is become transparent but it leave a green border around the character of the picture?
Original Picture
http://www.angelfire.com/super2/alexfung/images/Original.JPG
After Transparent
http://www.angelfire.com/super2/alexfung/images/After.JPG
Have i do something wrong of the value of DDCOLORKEY?
Can any one tell me how to set the value correctly?
Thanks a lot!