int _tmain(int argc, _TCHAR* argv[])
{
//initiation
_TCHAR* filename=_T("regenerate_original_picture.txt");
unsigned char data[256];
int packetlen=256;
static unsigned short *ImageData[256][256][128];
//What following below is define of the actual argument in the function of "Creat"
HBITMAP hBitmap;
BITMAPINFOHEADER *bmih=NULL ;
unsigned short * pBits =(unsigned short*)memset( pBits, 0x24, 256*256*2 );//pBits是内容// 一旦create了,就可以直接操控PB IT s这个指针,
//*( PB IT s + xxxx ) = 255; // 对某个像素赋值.
//填装数据
FILE *pfile=_tfopen(filename,_T("rb"));//rb要用_T转换一下
for (int i = 0; i
for (int j = 0; j
{
fread(data, 1, packetlen, pfile);
//dosomething //pBits,data,memcpy;
memcpy(ImageData[i][j],data,256);
}</