saurabh_shrivastava
03-21-2003, 01:08 AM
I've got the bitmap file in linux thru glDrawPixels(),i got the image but not the colors exactly what it was there in Windows..Its showing the gray shadow over it..
my main aim is to process the image ,getting the image data like COLORS as we do in Dos based 'C'-Graphics(getpixel,putpixel(-,-,BLACK)etc..I want this data to be in the form of Opengl so that I can have same pixel values as 'C Graphics'..as we get the values, say variable of the pixel value is :-*pixel and we're storing the values as pixel=255(means pure white on 256 colors,or pixel=0 as BLACK)
so how to get the same value in opengl..
pls send me reply soon
saurabh
my main aim is to process the image ,getting the image data like COLORS as we do in Dos based 'C'-Graphics(getpixel,putpixel(-,-,BLACK)etc..I want this data to be in the form of Opengl so that I can have same pixel values as 'C Graphics'..as we get the values, say variable of the pixel value is :-*pixel and we're storing the values as pixel=255(means pure white on 256 colors,or pixel=0 as BLACK)
so how to get the same value in opengl..
pls send me reply soon
saurabh