• 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: Alexander Griekspoor <email@hidden>
  • Date: Mon, 21 Mar 2005 13:52:48 +0100

Yep, that indeed did the trick....
Thanks!
Alex

On 21-mrt-05, at 11:52, Matt Gough wrote:


On 18 Mar 2005, at 10:04, Alexander Griekspoor wrote:

Now it is 14 indeed. The two reserved values are correctly 0 now. However, while the docs state that bfType should return 19778 or 'BM', I get the number 16973. Also the values I get for bfSize and bfOffbits seems odd (larger than the total filesize!?).
Alex



You have to byte-swap them as they are little-endian : http://www.webopedia.com/TERM/b/big_endian.html

Matt


*********************************************************
                    ** Alexander Griekspoor **
*********************************************************
             The Netherlands Cancer Institute
             Department of Tumorbiology (H4)
        Plesmanlaan 121, 1066 CX, Amsterdam
                   Tel:  + 31 20 - 512 2023
                   Fax:  + 31 20 - 512 2029
                   AIM: email@hidden
                   E-mail: email@hidden
               Web: http://www.mekentosj.com

      Microsoft is not the answer,
      Microsoft is the question,
      NO is the answer

*********************************************************

_______________________________________________
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: 
 >Reading .BMPs the hard way (From: Alexander Griekspoor <email@hidden>)
 >Re: Reading .BMPs the hard way (From: Matt Gough <email@hidden>)
 >Re: Reading .BMPs the hard way (From: Alexander Griekspoor <email@hidden>)
 >Re: Reading .BMPs the hard way (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: Binding to an array of dictionaries as a to-many
  • Next by Date: Re: Access iTunes Playlists / tracks via Cocoa
  • Previous by thread: Re: Reading .BMPs the hard way
  • Next by thread: Re: Reading .BMPs the hard way
  • Index(es):
    • Date
    • Thread