1) I want to know the value of red color in 24 bitmap image.
pixel is represented by 24bits, where there are 8 bits for each of the red, green, and blue (RGB) values
Suppose I open the 24 bitmap image, and save the data in unsigned char Array A.
i,e) ( A[0],A[1],A[2] ) is the first pixel value of the 24 bitmap image.
Then what is the value of Red color?
I think 24 bitmap image color order(?) is 'RGB', So A[0] is the red color value. Am I right?
2) In 16 bitmap image, pixel is represented by 16 bits, where there are 5 bits for each of the red, green, and blue (RGB) values .
Suppose I open the 16 bitmap image, and save the data in unsigned short Array B.
i,e) B[0] is the first pixel value of the 16 bitmap image.
In this situation, I want to know the value of red color.
I think the last 5 bit, i,e) 'A[0] & 31' is the value of blue color since the color order(?) of 16 bitmap image is 'RGB'
Am I right?