/*
Read image data.
*/
- if ((start_position+bmp_info.offset_bits) > TellBlob(image))
- {
- offset=SeekBlob(image,start_position+bmp_info.offset_bits,SEEK_SET);
- if (offset < 0)
- ThrowReaderException(CorruptImageError,"ImproperImageHeader");
- }
+ offset=SeekBlob(image,start_position+bmp_info.offset_bits,SEEK_SET);
+ if (offset < 0)
+ ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (bmp_info.compression == BI_RLE4)
bmp_info.bits_per_pixel<<=1;
bytes_per_line=4*((image->columns*bmp_info.bits_per_pixel+31)/32);