Code: Select all
sum=bmp_info.red_primary.x+bmp_info.red_primary.x+bmp_info.red_primary.z;
sum=bmp_info.red_primary.x+bmp_info.red_primary.y+bmp_info.red_primary.z;
Am I correct?
Code: Select all
sum=bmp_info.red_primary.x+bmp_info.red_primary.x+bmp_info.red_primary.z;
Code: Select all
if (bmp_info.compression > 3)
ThrowReaderException(CorruptImageError,"UnrecognizedImageCompression");
Code: Select all
switch (bmp_info.compression)
{
case BI_RGB:
case BI_RLE8:
case BI_RLE4:
case BI_BITFIELDS:
break;
case BI_JPEG:
ThrowReaderException(CoderError,"JPEGCompressNotSupported");
case BI_PNG:
ThrowReaderException(CoderError,"PNGCompressNotSupported");
default:
ThrowReaderException(CorruptImageError,"UnrecognizedImageCompression");
}