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

Username:   Password: 
 RegisterRegister   
 RGB Transparentcy? Or lack there of.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Gooie




PostPosted: Mon Jan 14, 2008 8:57 pm   Post subject: RGB Transparentcy? Or lack there of.

Sorry for all the help topics, but I ran in to a problem today, while working with GIFs and RGB.SetColour.

All I did, was draw a GIF image with transparency and it worked fine. But once I added RGB.SetColour the transparent parts were white. I didn't even draw anything with that color yet. I asked my teacher about it and she said she was stumped. So, is this a problem with Turing or me being an idiot?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jan 14, 2008 9:29 pm   Post subject: RE:RGB Transparentcy? Or lack there of.

In such a case, it helps to set up little test-case experiments -- try to reproduce the effect with the least code possible. Take out everything but the essentials, and run it in a new file. This is the base case that we will study.

Ideally you will have a tiny program that draws an image as expected. Then when you add a single line of code (RGB.SetColour), the transparency breaks -- then you will know this is the case.

If so, I suspect that that RGB.Set might be messing with Turing's default pallet of colours, but it's just a guess.

Feel free to publish such case studies in the Tutorials -- it's a good learning experience to figure such things out.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: