日期:2014-05-20  浏览次数:20817 次

位图操作高手请进,得到图片像素的颜色值怎么生成图片呢?
得到了图片的颜色值,从form里传上来的
PX118=f1fafb,f0f9fa,eff8f9,eef7f8,e9f2f3,e8f1f2,e7f0f1,e5eeef,dfecec,dfecec,dfecec,dfecec,dce9e9,dce9e9,dce9e9,dce9e9,dae7e7,dae7e7,dae7e7,dae7e7,dce9e9,d9e6e6,e0eded,d3e0e0,849992,576c65,3d6159,3e625a,376966,386a67,3a696f,3b6a70,39646a,39646a,386369,386369,345f65,345f65,345f65,345f65,365d60,365d60,365d60,365d60,345b5e,345b5e,345b5e,345b5e,345b5e,345b5e,345b5e,345b5e,2e5558,2e5558,2e5558,2e5558,295456,295456,285355,275254,204b4d,2a5557,335e60,345f61,2f5a5c,2b5658,255052,214c4e,1e494b,204b4d,214c4e,1f4a4c,23473f,1c4038,183b33,163931,112f29,112f29,142e29,142e29,132620,12251f,10231d,0f221c,132620,142721,162923,162923,0f2d27,102e28,12302a,12302a,17352f,17352f,17352f,17352f,163e3d,163e3d,163e3d,163e3d,1d4544,1f4746,224a49,244c4b,2e5558,2d5457,2c5356,2b5255,2c5356,2d5457,2e5558,2f5659,2c5453,2c5453,2c5453,2c5453,2b5352,2a5251,28504f,274f4e,294741,284640,26443e,25433d,1b3933,17352f,112f29,0d2b25,122b25,0f2822,102c27,213d38,2d4d4d,2f4f4f,2d5051,2b4e4f,284a4b,294b4c,254748,163839,183a3b,2c4e4f,2d4f50,2c4e4f,224a49,204847,214948,234b4a,244c4b,244c4b,244c4b,244c4b,284640,1c3a34,12302a,0f2d27,0f2d27,12302a,15332d,16342e
这是第118行的值,有了这些值怎么生成一个bmp图片呢?

------解决方案--------------------
建立一個bitmap,長寬就是你象素矩陣的長寬﹐然后用SetPixel方法填充象素﹐保存就可以了
------解决方案--------------------
http://www.shengfang.org/blog/p/bmpformat.php
http://www.vckbase.com/document/viewdoc/?id=674
------解决方案--------------------
位图需要调色板,这个要了解位图的格式比较麻烦的