Qbasicnews.com

Full Version: Using FL to find...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
the width and height of bmp/gif(supported formats in FL) files.

I am using FL to load bmp/gif files on the screen. But I want to find the width and height before loading. Is there any way through FL to find this? or i need to read the header myself? If so then does any one have a prog that reads the headers of bmps/gifs?
http://qbnz.com/pages/downloads/libraries/8bitPM.zip

Yry this. It's an extension for Future.Library.
Here's FL addon with extended image-loading functions:
http://www.fomalhautsoft.narod.ru/download/fl35add.zip
You can read the headers manually if you want, download a gif image importer for QB (Antoni Gual makes the best ones), and look at the code for extracting the data. You can find his gif89a (gifs with transparency, animation) reader at http://qbnz.com/pages/downloads/graphics/
Thanx all. I am directly reading the headers. Its very simple once you know the file formats :roll: