首页 > 代码库 > HObject 型ho_Image转BYTE型的pImage

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));

 

HObject 型ho_Image转BYTE型的pImage