Image sizes

BlitzMax Forums/BlitzMax Beginners Area/Image sizes

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm doing somthing like that FlameDuck, if the image doesn't match very specific parameters then it's simply ignored.

The only problem with the source that JimB pointed out, is that the Jpg code in it doesn't seem to work.

The code identifies a jpg by the first two bytes, and assumes that the image dimensions will be found at a set offset from that position. This doesn't seem to be true, which fits with the info I've read about jpg headers.

There's a possibility that my code or my jpg files are wrong, but anyway. BMP is fine for my purposes and the code for BMP works on the files I've tested.