[問題] 關於計程的作業附的網站

看板b97902HW作者 (翔)時間15年前 (2008/12/06 18:18), 編輯推噓1(105)
留言6則, 3人參與, 最新討論串1/1
請問一下: 這次作業附的網站有一個表格 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

12/06 18:48, , 1F
除標頭檔14byte外 有不同的DIB
12/06 18:48, 1F

12/06 18:50, , 2F
這次用的事40byte的Windows V3 DIB
12/06 18:50, 2F

12/06 18:51, , 3F
我連讀標頭檔寫不出來還一直幫人解答 XD
12/06 18:51, 3F

12/06 18:52, , 4F
目前停留在看的懂題目但不會寫的狀態 囧
12/06 18:52, 4F

12/06 19:04, , 5F
這查個字典就有了吧..
12/06 19:04, 5F

12/06 19:27, , 6F
那幫我解讀一下題目也行,我看都看不懂...
12/06 19:27, 6F
文章代碼(AID): #19Eb5fAB (b97902HW)