Re: Reading .BMPs the hard way
Re: Reading .BMPs the hard way
- Subject: Re: Reading .BMPs the hard way
- From: Scott Ribe <email@hidden>
- Date: Fri, 18 Mar 2005 09:35:37 -0700
> You have to respect that all values in a BMP file are littleEndian
> values. So you have to read with something like:
More generally, reading & writing structs directly from/to files is simply
not cross-platform compatible. You'll have to read x bytes into a buffer,
and then rearrange those bytes into your struct, not just for the header but
for all other data structures in the file.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden