***img;
AllocImg(x,y);
int u,v,r,g,b;
CImage left;
u=0,v=0;
left.GetPixelPrp(u,v,&r,&g,&b);
void CImage::GetPixelPrp(int x,int y,int *a,int *b,int *c)
{
*a=img[x][y][0];
*b=img[x][y][1];
*c=img[x][y][2];
//a, b, and c are the red, blue, green vales respectively.
}
img正常,在调用GetPixelPrp时r,g,b的值不对,为7位数??