作者tempTTP1 (翔)
看板b97902HW
標題[問題] 關於計程的作業附的網站
時間Sat Dec 6 18:18:16 2008
請問一下:
這次作業附的網站有一個表格
Offset # Size Purpose
14 4 the size of this header (40 bytes)
18 4 the bitmap width in pixels (signed integer).
22 4 the bitmap height in pixels (signed integer).
26 2 the number of color planes being used. Must be set to 1.
28 2 the number of bits per pixel, which is the color depth of the image.
Typical values are 1, 4, 8, 16, 24 and 32.
30 4 the compression method being used. See the next table for a list of
possible values.
34 4 the image size. This is the size of the raw bitmap data (see below), and
should not be confused with the file size.
38 4 the horizontal resolution of the image. (pixel per meter, signed
integer)
42 4 the vertical resolution of the image. (pixel per meter, signed integer)
46 4 the number of colors in the color palette, or 0 to default to 2n.
50 4 the number of important colors used, or 0 when every color is important;
generally ignored.
~~取自
http://en.wikipedia.org/wiki/BMP_file_format
Offset的意思是什麼?助教說標頭檔有14byte,這跟Offset有關嗎?他後面又標(40 bytes)
怎麼會這樣?
麻煩解答一下 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.241.187
1F:推 ewan7954:除標頭檔14byte外 有不同的DIB 12/06 18:48
2F:→ ewan7954:這次用的事40byte的Windows V3 DIB 12/06 18:50
3F:→ ewan7954:我連讀標頭檔寫不出來還一直幫人解答 XD 12/06 18:51
4F:→ ewan7954:目前停留在看的懂題目但不會寫的狀態 囧 12/06 18:52
5F:→ chenaren:這查個字典就有了吧.. 12/06 19:04
6F:→ tempTTP1:那幫我解讀一下題目也行,我看都看不懂... 12/06 19:27