Ok, finally I got some answers from other forums, coz jpeg is a compressed format, for loading the information abt the pixels in the RGB format, we have to first uncompress the image using the specifications mentioned in the jpeg manual it seems. I am on it, trying to uncompress the image getting the pixel values. I would definitely post the code, if i am done with it. i dont kno how complex it is yet.
thanks,
legolas.