作者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