CImageDecoder::FileNewL() don't work on Nokia6600?

Login to reply to this topic.
Thu, 2005-08-04 12:17
Joined: 2005-06-08
Forum posts: 53
Hello,
I am trying to display a picture(png/jpg) on screen by using CImageDecoder to load the pic from file.

I have tested my programm successfully on emulator. But it don't run on Nokia 6600. Sad Sad Sad
Code:
void CLoadImage4Container::View()
{
delete imageDecoder;
imageDecoder = NULL;

_LIT8(MimeType,"image/png");
imageDecoder = CImageDecoder::FileNewL(ff, _L("c:\\test2.png"), MimeType, CImageDecoder::EOptionAlwaysThread) );


iBitmap = new (ELeave) CFbsBitmap();
iBitmap->Create(imageDecoder->FrameInfo().iOverallSizeInPixels, imageDecoder->FrameInfo().iFrameDisplayMode);//EColor4K);

TRequestStatus status;//iState = EDecoding;
imageDecoder->Convert( &status, *iBitmap );
User::WaitForRequest(status);

bitmapDevice = CFbsBitmapDevice::NewL(iBitmap);
graphicsContext = NULL;
User::LeaveIfError(bitmapDevice->CreateContext(graphicsContext));
graphicsContext->BitBlt(TPoint(0,0),iBitmap,TRect(iBitmap->SizeInPixels()));

image = ETrue;
DrawNow();
}
   
on the following line the programm jumped out.
Code:
imageDecoder = CImageDecoder::FileNewL(ff, _L("c:\\test2.png"), MimeType, CImageDecoder::EOptionAlwaysThread) );


Can someone help my code?

Thanks     Huh

Fri, 2005-08-05 10:01
Joined: 2005-06-08
Forum posts: 53
Re: CImageDecoder::FileNewL() don't work on Nokia6600?
should work on Series 60 2.x not on 1.x
  • Login to reply to this topic.