How to make .BMP Transparent? and GIF
Author |
Message |
brownni
|
Posted: Mon Jan 23, 2012 7:42 pm Post subject: How to make .BMP Transparent? and GIF |
|
|
What is it you are trying to achieve?
I am trying to make my deer for my hunting game lose the white background around them and also the trees that are .GIF lose the white that stays on
What is the problem you are having?
The whole background of my deer's are white, and it just doesn't look good, also the trees.GIF got rid of some background white but still outer white around them
Describe what you have tried to solve this problem
I have tried to use photoshop and make a transparent background but it always goes back white. and also i tried the transparency in F10 and it did not work
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
ihsh
|
Posted: Mon Jan 23, 2012 8:56 pm Post subject: Re: How to make .BMP Transparent? and GIF |
|
|
Are you sure that your background is perfectly white (i.e., not just a very pale shade of gray)?
Because if so, Pic.SetTransparentColor should work (I have used it a lot for my ISP). |
|
|
|
|
![](images/spacer.gif) |
Dreadnought
|
Posted: Mon Jan 23, 2012 10:05 pm Post subject: Re: How to make .BMP Transparent? and GIF |
|
|
How are you drawing your deer? Are you using the picMerge keyword? If you're using picCopy, the background will not be transparent. |
|
|
|
|
![](images/spacer.gif) |
brownni
|
Posted: Tue Jan 24, 2012 11:53 am Post subject: RE:How to make .BMP Transparent? and GIF |
|
|
% Pic.ScreenLoad ("deer.bmp", 100, 100, picMerge)
That is how i was calling the deer, i did the whole F10 and copied exactly as the transparency was written down and changed the variables, but it still didnt work and i even used the number that what.dotcolour game me?? My teacher cant even help :/ |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Tue Jan 24, 2012 12:01 pm Post subject: RE:How to make .BMP Transparent? and GIF |
|
|
The problem is likely exactly what ishs said. picMerge will only make exactly the color specified transparent. Often compression will make whites slightly off-white. If you open the bmp in paint, and use the fill tool with any non-white color on the white areas, you'll see lots of spots that don't get filled in 'cause they're slightly off-white.
So, you need to open the bmp in paint, and every single 'white' pixel that isn't exactly white (0xffffff or 0x000000; I forget which) needs to be painted white. This is the only solution. |
|
|
|
|
![](images/spacer.gif) |
brownni
|
Posted: Tue Jan 24, 2012 12:09 pm Post subject: RE:How to make .BMP Transparent? and GIF |
|
|
FIXED IT Thanks guys ihsh you were right i went back and the white was not perfectly white THANK U ! |
|
|
|
|
![](images/spacer.gif) |
|
|