Hi!
Does anyone know why an .jpg loaded into an CFbsBitmap does not give me the right values..
In Symbian, line 430 the first 10 pixels, a picture gives me(R,G,B:
R G B
158,169,156;
158,169,156;
159,170,157;
160,171,158;
160,171,158;
159,170,157;
158,169,156;
158,169,156;
157,168,154;
157,168,154;
158,169,156;

And line 430 in Photoshop/Matlab/Paint

RED 158 158 159 160 160 159 158 158 157 157
GREEN 168 168 169 170 170 169 168 168 168 168
BLUE 157 157 158 159 159 158 157 157 154 154



Code used for Symbian Decoding.

void CImageConverterEngine::StartToDecodeL( TFileName& aFileName )
{
delete iImageDecoder; iImageDecoder = NULL;
delete iBitmap; iBitmap = NULL;

// create the decoder
fn->decoded_total++;
iImageDecoder = CImageDecoder::FileNewL( iFs, _L("C:\\pskl\\test_pic\\image_1M0.jpg"), CImageDecoder::EOptionAlwaysThread);

// create the destination bitmap
iBitmap = new (ELeave) CFbsBitmap();
iBitmap->Create( iImageDecoder->FrameInfo().iOverallSizeInPixels,
iImageDecoder->FrameInfo().iFrameDisplayMode );

// start conversion to bitmap
iState = EDecoding;
iImageDecoder->Convert( &iStatus, *iBitmap );
SetActive();
}


Please help nobody seem to know.

Yngve