• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading .BMPs the hard way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Reading .BMPs the hard way (From: Heinrich Giesen <email@hidden>)

  • Prev by Date: RE: [NSKeyValueArray removeObjectAtIndex:]: selector not
  • Next by Date: Re: Reading .BMPs the hard way
  • Previous by thread: Re: Reading .BMPs the hard way
  • Next by thread: Re: Reading .BMPs the hard way
  • Index(es):
    • Date
    • Thread