{"id":5,"date":"2005-08-21T08:27:31","date_gmt":"2005-08-21T00:27:31","guid":{"rendered":"http:\/\/tmp.xujiwei.com\/blog\/?p=5"},"modified":"2010-01-28T20:10:17","modified_gmt":"2010-01-28T12:10:17","slug":"bitmap-format-study","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2005\/08\/bitmap-format-study\/","title":{"rendered":"BMP \u6587\u4ef6\u683c\u5f0f\u5b66\u4e60"},"content":{"rendered":"<p>\u7531\u4e8e\u6539\u8fdbIMAGELIS\u7684\u9700\u8981\uff0c\u6211\u5bf9BMP\u6587\u4ef6\u7684\u683c\u5f0f\u8fdb\u884c\u4e86\u4e00\u4e9b\u7814\u7a76\uff0c\u5199\u5728\u8fd9\u91cc\u505a\u4e3a\u5b66\u4e60\u7b14\u8bb0\uff0c\u4e5f\u7ed9\u9700\u8981\u7684\u670b\u53cb\u505a\u4e3a\u53c2\u8003\u3002\u5982\u679c\u6ca1\u6709\u7279\u522b\u8bf4\u660e\uff0c\u6211\u6240\u7528\u7684\u4f4d\u56fe\u6587\u4ef6\u90fd\u662f\u7531WinowXP\u81ea\u5e26\u7684\u753b\u56fe\u4ea7\u751f\u3002<\/p>\n<p>BMP\u6587\u4ef6\u683c\u5f0f\u5728\u7f51\u4e0a\u5df2\u7ecf\u5f88\u591a\u6559\u7a0b\u4e4b\u7c7b\u7684\uff0c\u4e0d\u8fc7\u6211\u8fd9\u91cc\u8bb2\u7684\u662f\u4e00\u4e9b\u5b83\u4eec\u6ca1\u63d0\u5230\u7684\u3002<\/p>\n<p><strong>1.\u6570\u636e\u533a\u8d77\u59cb\u4f4d\u7f6e<\/strong><\/p>\n<p>\u6211\u5728\u7f51\u4e0a\u627e\u5230\u8bb8\u591a\u6709\u5173BMP\u6587\u4ef6\u683c\u5f0f\u7684\u8bf4\u660e\u90fd\u8bf4\u6570\u636e\u533a\u8d77\u59cb\u4f4d\u7f6e\u5728\u76f8\u5bf9\u6587\u4ef6\u5f00\u593451\u4e2a\u5b57\u8282\u5904\uff0c\u4f46\u6211\u5374\u53d1\u73b0\u6570\u636e\u533a\u8d77\u59cb\u5728\u76f8\u5173\u6587\u4ef6\u5f00\u593455\u4e2a\u5b57\u8282\u5904\uff0c\u4e0d\u77e5\u662f\u7f51\u4e0a\u7684\u9519\u4e86\u8fd8\u662f\u6211\u9519\u4e86\uff0c\u4e0d\u8fc7\u6211\u8fd9\u6837\u7528\u4e86\u597d\u50cf\u4e5f\u6ca1\u51fa\u9519\uff0c\u6709\u7a7a\u518d\u7814\u7a76\u7814\u7a76\u3002<\/p>\n<p><strong>2.\u50cf\u7d20\u4fdd\u5b58\u987a\u5e8f<\/strong><\/p>\n<p>\u4f4d\u56fe\u4fdd\u5b58\u65f6\u626b\u63cf\u987a\u5e8f\u662f\u4ece\u4e0b\u81f3\u4e0a\uff0c\u4ece\u5de6\u81f3\u53f3\uff0c\u5373\u5728\u4f4d\u56fe\u6570\u636e\u533a\uff0c\u4f4d\u56fe\u7b2c\u4e00\u884c\u4fdd\u5b58\u5728\u4f4d\u56fe\u6570\u636e\u533a\u7684\u6700\u540e\uff0c\u800c\u4f4d\u56fe\u6700\u540e\u4e00\u884c\u4fdd\u5b58\u5728\u4f4d\u56fe\u6570\u636e\u533a\u7684\u5f00\u59cb\uff0c\u4f8b\u6709\u4e00\u4e2a4x4\u7684\u4f4d\u56fe\uff0c\u90a3\u4e48\u5b83\u67094\u884c\uff0c4\u5217\uff0c\u50cf\u7d20\u4fdd\u5b58\u5728\u6570\u636e\u533a\u7684\u987a\u5e8f\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p>line3\u00a0pixel\u00a00\u00a01\u00a02\u00a03<\/p>\n<p>line2\u00a0pixel\u00a00\u00a01\u00a02\u00a03<\/p>\n<p>line1\u00a0pixel\u00a00\u00a01\u00a02\u00a03<\/p>\n<p>line0\u00a0pixel\u00a00\u00a01\u00a02\u00a03<\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u6211\u4eec\u8981\u81ea\u5df1\u4ea7\u751f\u4e00\u4e2a\u4f4d\u56fe\u6587\u4ef6\uff0c\u90a3\u4e48\u4fdd\u5b58\u65f6\u5c31\u5e94\u8be5\u4ece\u6700\u540e\u4e00\u884c\uff0c\u7b2c\u4e00\u4e2a\u50cf\u7d20\u5f00\u59cb\u4fdd\u5b58\uff0c\u4fdd\u5b58\u597d\u4e00\u884c\u540e\u5c31\u5f80\u4e0a\u4e00\u884c\u76f4\u5230\u7b2c\u4e00\u884c\u4fdd\u5b58\u5b8c\u6bd5\uff0c\u5f53\u7136\uff0c\u6211\u4eec\u5fc5\u987b\u5728\u4f4d\u56fe\u6570\u636e\u4e4b\u524d\u52a0\u4e0a\u4f4d\u56fe\u6587\u4ef6\u5934\uff0c\u6587\u4ef6\u5934\u7684\u683c\u5f0f\u53ef\u4ee5\u5728\u7f51\u4e0a\u627e\u8d44\u6599\u3002<\/p>\n<p><strong>3.\u884c\u5b57\u8282\u5bf9\u9f50<\/strong><\/p>\n<p>\u53ef\u80fd\u662f\u4e3a\u4e86\u6570\u636e\u533a\u7684\u8bfb\u53d6\u66f4\u5feb\u901f\uff0cBMP\u683c\u5f0f\u89c4\u5b9a\u4e00\u884c\u7684\u5b57\u8282\u6570\u5fc5\u987b\u662f4\u7684\u500d\u6570\uff0c\u5982\u679c\u4e0d\u8db3\uff0c\u5c31\u75280\u8865\u8db3\u3002\u4f8b\u5982\u6709\u4e00\u5e455x5\u768424\u4f4d\u8272\u4f4d\u56fe\uff0c\u90a3\u4e48\u672c\u6765\u6bcf\u4e00\u884c\u7684\u5b57\u8282\u6570\u662f24\/8*5\uff1d15\u4e2a\u5b57\u8282\uff0c\u4f4615\u4e0d\u662f4\u7684\u500d\u6570\uff0c\u8fd8\u9700\u89811\u4e2a\u5b57\u8282\u6765\u8865\u8db3\uff0c\u4e8e\u662f\u5728\u6570\u636e\u533a\u8fd9\u4e00\u884c\u7684\u6570\u636e\u5c31\u662f\uff1a<\/p>\n<p>pixel\u00a00\u00a01\u00a02\u00a03\u00a04\u00a00x00<\/p>\n<p>\u540c\u7406\u5982\u679c\u5bbd\u5ea6\u662f7\u90a3\u4e48\u5c31\u9700\u8981\u88653\u4e2a\u5b57\u8282\u7b49\u7b49\u3002\u5982\u679c\u662f12x12\u5355\u8272\u4f4d\u56fe\uff0c\u90a3\u4e48\u4e00\u884c\u670912\/2\uff1d6\u4e2a\u5b57\u8282\uff0c\u5c31\u9700\u8981\u5728\u6bcf\u4e00\u884c\u7684\u6570\u636e\u7684\u6700\u540e\u88652\u4e2a\u5b57\u8282\u3002<\/p>\n<p>\u8fd9\u4e2a\u88650\u7684\u95ee\u9898\u5f88\u591a\u670b\u53cb\u5728\u5904\u7406\u4f4d\u56fe\u7684\u65f6\u5019\u6ca1\u6709\u6ce8\u610f\uff0c\u4ee5\u81f4\u4e8e\u7a0b\u5e8f\u5728\u5904\u7406\u8bf8\u598232x32\u4e4b\u7c7b\u7684\u4f4d\u56fe\u65f6\u80fd\u5f88\u597d\u7684\u8fd0\u884c\uff0c\u800c\u5904\u7406\u598231x32\u8fd9\u6837\u7684\u5c31\u4e0d\u884c\u4e86\u3002<\/p>\n<p><strong>4.\u989c\u8272\u6570\u5c11\u4e8e256\u65f6\u7684\u6570\u636e\u4f4d<\/strong><\/p>\n<p>\u5728\u989c\u8272\u6570\u5c11\u4e8e256\u65f6\u4e00\u4e2a\u5b57\u8282\u91cc\u5c31\u53ef\u80fd\u4fdd\u5b581\u4e2a\u6216\u8005\u66f4\u591a\u4e2a\u50cf\u7d20\uff0c\u8fd9\u65f6\u5c31\u8981\u6ce8\u610f\u50cf\u7d20\u5728\u5b57\u8282\u91cc\u7684\u4fdd\u5b58\u987a\u5e8f\u4e86\u3002\u50cf\u7d20\u5728\u5b57\u8282\u5185\u4fdd\u5b58\u7684\u987a\u5e8f\u539f\u5219\u662f\u524d\u9762\u7684\u50cf\u7d20\u5728\u9ad8\u4f4d\uff0c\u540e\u9762\u7684\u50cf\u7d20\u5728\u4f4e\u4f4d\u3002\u4f8b\uff1a<\/p>\n<p>\u572816\u8272\u4f4d\u56fe\u91cc\uff0c\u6bcf\u4e00\u4e2a\u50cf\u7d20\u9700\u89814\u4e2abit\u6765\u4fdd\u5b58\uff0c\u56e0\u6b641\u4e2a\u5b57\u8282\u91cc\u5c31\u4fdd\u5b58\u4e86\u4e24\u4e2a\u50cf\u7d20\uff0c\u5047\u5982\u6709\u4e00\u4e2a2x1\u768416\u8272\u4f4d\u56fe\uff0c\u7b2c\u4e00\u4e2a\u50cf\u7d20\u662f\u9ed1\u8272\uff0c\u6570\u636e\u662f0x0\uff0c\u7b2c\u4e8c\u4e2a\u50cf\u7d20\u767d\u8272\uff0c\u6570\u636e\u662f0xF\uff0c\u90a3\u4e48\u6839\u636e\u4e0a\u9762\u7684\u539f\u5219\uff0c\u8fd9\u4e24\u4e2a\u50cf\u7d20\u5728\u5b57\u8282\u91cc\u662f\u8fd9\u6837\u4fdd\u5b58\u7684\uff1a<\/p>\n<p>pixel\u00a00\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01<\/p>\n<p>bits\u00a0\u00a00000\u00a01111<\/p>\n<p>\u540c\u7406\uff0c\u5982\u679c\u662f\u5355\u8272\u4f4d\u56fe\uff0c\u4e5f\u662f\u524d\u9762\u7684\u50cf\u7d20\u5728\u9ad8\u4f4d\uff0c\u540e\u9762\u7684\u50cf\u7d20\u5728\u4f4e\u4f4d\u3002<\/p>\n<p>\u4ee5\u4e0a\u5462\u5c31\u662f\u6211\u5728\u7814\u7a76BMP\u683c\u5f0f\u65f6\u5f97\u5230\u7684\u4e00\u4e9b\u7ecf\u9a8c\uff0c\u5f53\u7136\uff0c\u5982\u679c\u6709\u9519\u6216\u8005\u6709\u4ec0\u4e48\u95ee\u9898\u53ef\u4ee5\u7ed9\u6211\u5199\u4fe1\uff1a\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u6539\u8fdbIMAGELIS\u7684\u9700\u8981\uff0c\u6211\u5bf9BMP\u6587\u4ef6\u7684\u683c\u5f0f\u8fdb\u884c\u4e86\u4e00\u4e9b\u7814\u7a76\uff0c\u5199\u5728\u8fd9\u91cc\u505a\u4e3a &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2005\/08\/bitmap-format-study\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[12],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}