0

For week 4 problem set, in line 50 of copy.c there is a conditional statement to check if the image is uncompressed - biCompression != 0. According to the MSDN documentation for bitMapInfoHeader, the value of biCompression should be BI_RGB in case of uncompressed image. So can we check non - compression with the following condition: biCompression == BI_RGB instead of biCompression != 0.

1

According to the BMP article on Wikipedia, BI_RGB has a value of 0, so this check is true if the compression is not BI_RGB.

I assume the programme is meant to abort the operation if biCompression != 0.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .