getting RGB values from BMP
-
Hello people well i am really having a hard time handling BMPs. My object is to get the RGB values from a BITMAP image which can anything like a 8 16 or 24 bit image. for simplicity i am using just the 24 bit BMP i have used BITMAP HBITMAP and CBitmap class in the end i got the bytes from the 24 bit image like this BYTE *pix = (BYTE*)bm.bmBits; where bm is of type BITMAP but something is wrong when i am drawing the pixels on the screen using the setPixel function i image is not drawn correctly and i dont seem to figure out the problem please help me i need the RGB values for an IMAGE PROCESSING PROJECT i am finding it really hard to get the values and please do not refer to me packages like cximage and stuff i dont want to use any library just tell me how to get the RGB values from a BMP file
-
Hello people well i am really having a hard time handling BMPs. My object is to get the RGB values from a BITMAP image which can anything like a 8 16 or 24 bit image. for simplicity i am using just the 24 bit BMP i have used BITMAP HBITMAP and CBitmap class in the end i got the bytes from the 24 bit image like this BYTE *pix = (BYTE*)bm.bmBits; where bm is of type BITMAP but something is wrong when i am drawing the pixels on the screen using the setPixel function i image is not drawn correctly and i dont seem to figure out the problem please help me i need the RGB values for an IMAGE PROCESSING PROJECT i am finding it really hard to get the values and please do not refer to me packages like cximage and stuff i dont want to use any library just tell me how to get the RGB values from a BMP file