can i use .gif files

Blitz3D Forums/Blitz3D Beginners Area/can i use .gif files

malicnite(Posted 2005) [#1]
can i use .gif files. and it not how can i get invisible backround.


sswift(Posted 2005) [#2]
No. Use PNG instead. With PNG you can have masking and 24bit color if you want. Or you can have 8bit color like Gif.

And if you want an invisible background use MaskImage after you load the image. Most people use 255,0,255 for the masking color, since it is unlikely to appear in an image normally.


jfk EO-11110(Posted 2005) [#3]
If you really need to use GIF, or animated GIF, OpenMovie can read animated GIF, so you could copyrect them to some imagebuffers. I think transparent color is not supported, tho not sure of this.

In fact I recently found that using GIF as a video "codec" is probably the way that is most compatible with all machines. Limited to 256 Colors, of course.


jhocking(Posted 2005) [#4]
While you can use GIF in the manner jfk describes, using PNG is much better.


Mustang(Posted 2005) [#5]
http://www.blitzbasic.com/b3ddocs/command.php?name=OpenMovie&ref=2d_cat