
Originally Posted by
ramunla
Hi all!
Anybody knows how to load an image from bitmap file with some offset?
I'am trying to load image from "filename" and don't want to load the whole image.
Or is it possible to cut a picture from the image when it has been initialized already?
iDisplayMode = aDisplayMode;
TBuf8<50> mimeType;
CImageDecoder::GetMimeTypeFileL(iFs, filename, mimeType);
CImageDecoder* imageDecoder = CImageDecoder::FileNewL(iFs,filename, mimeType );
iBitmap->Create( imageDecoder->FrameInfo().iOverallSizeInPixels, iDisplayMode);
Thanks
in advance