Pic.SetTransparentColor not working?
Author |
Message |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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")
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
jinjin
|
Posted: 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 Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|