bit=0;
byte=0;
}
- p+=GetPixelChannels(image);
+ p+=GetPixelChannels(next);
}
if (bit != 0)
*q++=(unsigned char) (byte << (8-bit));
nibble=0;
byte=0;
}
- p+=GetPixelChannels(image);
+ p+=GetPixelChannels(next);
}
if (nibble != 0)
*q++=(unsigned char) (byte << 4);
for (x=0; x < (ssize_t) next->columns; x++)
{
*q++=(unsigned char) GetPixelIndex(next,p);
- p+=GetPixelChannels(image);
+ p+=GetPixelChannels(next);
}
if (next->previous == (Image *) NULL)
{