HObject 型ho_Image转BYTE型的pImage

示意代码如下:

1 GetImagePointer1(ho_Image, &hv_Pointer, &hv_Type, &hv_Width, &hv_Height);
2 BYTE *p=(BYTE *)hv_Pointer[0].L();
3 int height= (Hlong)hv_Height; 
4 int width = (Hlong)hv_Width;
5 memcpy(pImage,p,width*height*sizeof(BYTE));

 

posted @ 2015-01-13 09:27  yangxin4894  阅读(1958)  评论(3编辑  收藏  举报