c/c++ 图像RGB位存储,位操作
摘要:
直接上代码: 1 #include <string.h> 2 #include <stdio.h> 3 #include <math.h> 4 5 6 typedef unsigned short UINT16; //store pixel rgb data 7 typedef unsigned char BYTE; //store r\g\b data 8 9 10 11 void main(){12 UINT16 pattern[640][480]; //16bit 640*480 rgb image.13 BYTE rgb[3];... 阅读全文
posted @ 2012-07-07 09:28 Rambo.Wang 阅读(2378) 评论(0) 推荐(0)
浙公网安备 33010602011771号