MImage::MImage(const MImage ©) { MXS = 0; MYS = 0; MZS = 0; MImgBuf=NULL; if(copy.MIsEmpty()) { return; } MAllocMemory(copy.MXS,copy.MYS,copy.MZS); for(int y=0; y<MYS; y++) for(int x=0; x<MXS; x++) MImgBuf[x][y]=copy.MImgBuf[x][y]; }