Hi I want to make array with type of CFbsBitmap? I build a CFbsBitmap from some descriptors. I have succeded converting those descriptora to CFbsBitmap object. The code like this...
void CClass::MiuoConvertComplete(TInt aError){
iDescBitmapLoader->Close();
SetNewsImage();
}
void CClass::SetOtherNewsImage(){
CFbsBitmap* Bitmap;
Bitmap = iBitmapContent;
iArrayImage->AppendL(*Bitmap);
//This Function get different descriptor and convert to CFbsBitmap
GetAnotherDesciptor()
}
void CClass::GetOtheDescriptor(){
//Desc below contain bytes of image, ie bytes of gif image
if (thereIsAnyDescLeft)
iDescBitmapLoader->OpenL(Desc);
}
The problem is every element of iArrayImage gave me the same image, and always from the last descriptor, although the descriptors is different one to another. What I must to do to have an array which contains different images that build from diferent descriptors?
Can somebody gave a suggestion how to do that programatically?
Lots of thanks...
I guess that the problem is this line: "Bitmap = iBitmapContent", coz it doesn't copy actual data but only pointer...:-(
You have to create new "iBitmapContent" for each image.