Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 white space in pictures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kythoon




PostPosted: Sun May 11, 2003 10:38 am   Post subject: white space in pictures

is there any way to get rid of the white background a of a picture. Right now, if i draw it on a screen with a background and the picture moves over a dark spot, you can see the white edges covering it up.

can u get rid of that?





i'm going to feel really retarded if this is simple or if it is posted already Embarassed
Sponsor
Sponsor
Sponsor
sponsor
Asok




PostPosted: Sun May 11, 2003 10:55 am   Post subject: (No subject)

use PicMerge in your Pic.Draw. White will be transparent.
kythoon




PostPosted: Sun May 11, 2003 11:16 am   Post subject: (No subject)

on which the background or the picture


thanks
Blade




PostPosted: Sun May 11, 2003 11:24 am   Post subject: (No subject)

on the whole picture..
kythoon




PostPosted: Sun May 11, 2003 11:38 am   Post subject: (No subject)

i just tried it doesn't work no matter where i put it

...
Pic.Draw (backgroundPic, -backgroundX, -backgroundY, picCopy)
Pic.Draw (finalClassPic, finalClassPicX - backgroundX, finalClassPicY - backgroundY, picMerge)
...

i first draw background with picCopy, then the character with picMerge, doesn't work Confused
Tony




PostPosted: Sun May 11, 2003 11:47 am   Post subject: (No subject)

for picMerge to work, it gets rid of true white (255,255,255) making it transparent. So say if you have a light grey in there, it wouldn't work. You might have to edit your pictures.

BTW, the easiest way to test for transparency is drawing over black background Wink
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
kythoon




PostPosted: Sun May 11, 2003 12:10 pm   Post subject: (No subject)

your right, it wasn't true white, but it sure looked like it
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: