×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Jakarta, Indonesia
    Posts
    53

    array of CFbsBitmap

    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...

    CArrayFixFLat <CFbsBitmap>* iArrayImage;
    iArrayImage = new(ELeave) CArrayFixFlat<CFbsBitmap>(1);
    CFbsBitmap* iBitmapContent;
    CMdaImageDescToBitmapUtility* iDescBitmapLoader;

    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...

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    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.

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Re: array of CFbsBitmap

    Hi All n apitoman !

    I am facing the same problem. Badly stuck.
    Can anybody help me plz..!

    apitoman , how did u solve this problem?

    I tried using CArrayPtr< CGulIcon >* icons

    It gives the same results.

    Thanks
    Regards,
    Shilpa Kulkarni

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×