Computer Science Canada Saving an Image Background as Transparent? |
Author: | Fexter [ Mon Jan 30, 2012 12:55 pm ] | ||
Post subject: | Saving an Image Background as Transparent? | ||
What is it you are trying to achieve? I want to use Turing to automate making pictures (Such as text) with transparent backgrounds (So I can easily bring them into other programs and not have to worry about the white of the background). What is the problem you are having? I can't seem to find any way to make the background transparent once I save my image. Describe what you have tried to solve this problem I tried looking through the Turing Documentation for something that would be able to do this, but didn't find anything. I also looked through the forum search, but all I could find was setting what colour is transparent for Turing. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using I am using Turing 4.1.1. |
Author: | mirhagk [ Mon Jan 30, 2012 1:15 pm ] |
Post subject: | RE:Saving an Image Background as Transparent? |
I don't think you can natively with Turing, you'd have to figure out how to parse the picture file yourself. |
Author: | Fexter [ Mon Jan 30, 2012 1:28 pm ] |
Post subject: | RE:Saving an Image Background as Transparent? |
Okay, thanks. ![]() |
Author: | Raknarg [ Mon Jan 30, 2012 4:28 pm ] |
Post subject: | RE:Saving an Image Background as Transparent? |
If I'm unserstanding this correctly, you can probably solve the problem by using picMerge instead of picCopy when you draw an image. |
Author: | copthesaint [ Mon Jan 30, 2012 4:59 pm ] |
Post subject: | Re: RE:Saving an Image Background as Transparent? |
Fexter wrote: What is it you are trying to achieve? I want to use Turing to automate making pictures (Such as text) with transparent backgrounds (So I can easily bring them into other programs and not have to worry about the white of the background). If you want to accomplish this first you will need to save Two Images. First Your Colored Image, second your Alpha image which will be composed of grey scale colors. then you will need to write a file from another language (or find one) that will allow you to set the alpha channel with an image, and allow you to save that file, here is an example. I myself havnt had a reason to ever save an image with an alpha channel. So I cant really help you anymore. Raknarg @ Mon Jan 30, 2012 wrote: If I'm unserstanding this correctly, you can probably solve the problem by using picMerge instead of picCopy when you draw an image.
No That not what he wants. he wants to save with alpha not draw transparent. |