IOException,
OperationFailedException
{
if ((getBoundsX1() % 8) != 0)
{
throw new OperationFailedException("When loading bilevel images, horizontal X1 bounds must be a multiple of 8; got " + getBoundsX1());
}
BilevelImage image = (BilevelImage)getImage();
int imageBytesPerRow = (imageWidth + 7) / 8;
int bytesPerRow = imageBytesPerRow;
int mod = bytesPerRow % 4;