Reading image information without LoadImage
BlitzMax Forums/BlitzMax Programming/Reading image information without LoadImage
| ||
For anyone who doesn't check the Code Archives much, I'm quite proud of this! It lets you read width/height/depth and some other information directly from image files without having to load the whole file via LoadImage first: Retrieve image information without loading entire image It currently supports BMP, PNG, JPEG and Gif formats. [EDIT: Now supports TGA.] |
| ||
nice job... In fact, I think I might need this for a little project of mine. |
| ||
Yes, very useful, James. Thanks. |
| ||
Nice, useful for paint programs and the like. |
| ||
Thank you for sharing. I have sent you some code to get values (width,height,depth) from TGA files. |
| ||
Thanks, Zawran, but I've just been adding TGA -- see updated entry! |
| ||
Ah, too late then. I took a quick look at .tiff, but it looks a bit more complex. I might take a closer look during the weekend though. |
| ||
This code now supports online images too, ie. pass a URL and you get the width/height/other information back, again without having to read the whole image. Not sure what actual use that is, but it's very cool. |
| ||
Nice !! Very useful for image editing and other image related tool. Thanks for this addition :) |
| ||
I've just fixed it for PPC Macs -- as I suspected, I needed to fix the byte-endianness. |