Re: Reading .BMPs the hard way
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