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

Username:   Password: 
 RegisterRegister   
 Pic.SetTransparentColor not working?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Sat May 17, 2008 7:17 pm   Post subject: Pic.SetTransparentColor not working?

For some obscure reason, Pic.SetTransparentColor has stoped working on my computer. All my previous codes work fine, but new ones will not. There is no error, it just doesn't work.

Here is a sample of my code

code:

var largepacmanopen := Pic.FileNew ("largepacmanopen.bmp")
Pic.SetTransparentColor (largepacmanopen, white)


The problem is definitely not the color of the picture, as I made the picture in turing and know for a FACT that the picture background is bone white. Is this a problem for other people to?
Here is the code I used to draw the picture in the first place (I knew it would be a good Idea to save the code...)

code:

Draw.FillOval (100, 100, 50, 50, yellow)
Draw.FillArc (100, 100, 50, 50, 315, 45, white)
Pic.ScreenSave (1, 1, 300, 300, "largepacmanclosed.bmp")
Sponsor
Sponsor
Sponsor
sponsor
CodeMonkey2000




PostPosted: Sat May 17, 2008 7:21 pm   Post subject: RE:Pic.SetTransparentColor not working?

Did you use picMerge instead of picCopy when you drew the picture?
Insectoid




PostPosted: Sat May 17, 2008 7:44 pm   Post subject: RE:Pic.SetTransparentColor not working?

no, I have never used picMerge in my life.
I have only ever used picCopy, but then, I have only ever used invisible colors on sprites...
Am I supposed to use picMerge? Guess I'll try that!
jinjin




PostPosted: Sun May 18, 2008 3:57 pm   Post subject: Re: Pic.SetTransparentColor not working?

From the Turing help file on Pic.SetTransparentColor:

Quote:

The Pic.SetTransparentColor procedure sets the color in the picture that should be considered transparent when the picture is drawn using the picMerge or picUnderMerge modes.


So, as CodeMonkey2000 had previously mentioned, it's exclusively for picMerge/picUnderMerge Smile
Insectoid




PostPosted: Tue May 20, 2008 3:51 pm   Post subject: RE:Pic.SetTransparentColor not working?

Well, the help doesn't work on my computer. Anyway, I got it working fine.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: