GLBasic forum

Main forum => GLBasic - en => Topic started by: kamakazieturtle on 2009-Dec-18

Title: Help please
Post by: kamakazieturtle on 2009-Dec-18
I searched the forum but couldn't find anything I could understand. Is it possible to save an image as a .png file? If so how would I? O_O
Title: Re: Help please
Post by: MrTAToad on 2009-Dec-18
You've got two options - SAVEBMP will save the screen as a BMP file and SAVESPRITE to save as either a BMP or PNG file.
Title: Re: Help please
Post by: kamakazieturtle on 2009-Dec-18
I've been using save sprite, but before I save it I have to set the transparency to something other than 255,0,128 or else it saves the pink as black. Then when loading the image now, it loads the pink even if I set the transparency back to 255,0,128 before loading the image.
Title: Re: Help please
Post by: MrTAToad on 2009-Dec-18
Sounds like the transparency value is wrong - have a look in Paint and see if the background is pink or black...
Title: Re: Help please
Post by: kamakazieturtle on 2009-Dec-19
No everything was right, I just looked over the code and I needed to load the image with a different transparency so it wouldn't consider the color transparent. Then set the transparency back to pink, and then finally load the image so the final product is transparent again. Just commands in the wrong order, but thanks MrTAToad for your help.
Title: Re: Help please
Post by: MrTAToad on 2009-Dec-19
No problem!