×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    bitmap store problem

    hi! I have a big problem that i couldnt solve for four days.

    i take a bitmaps binary data from port to a TBuf8 typed iBuffer variable. its length is same as the bitmaps byte length.

    i couldnt store this binary data as an bitmap file on the c: directory. i couldnt convert TBuf8 typed variable to CFBSBitmap or dont know the basic way.



    void CBmpmanipAppView::SaveL(TBuf8<1000> iBuffer)
    {

    RMemReadStream iMemReadStream(iBuffer.Ptr(),1000);

    CFbsBitmap *iBitmap = new CFbsBitmap();
    User::LeaveIfError(iBitmap->Create(TSize(4,4),EColor256));
    iBitmap->InternalizeL(iMemReadStream);

    iBitmap->Save(KBmpFileName);
    }

    this is the code i wrote and i dont know what to do and is not working. i hope someone may help me . thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    maybe you should instead try CMdaImageDescToBitmapUtility to convert the image.

    Anyway if the buffer is excat binary buffer read from image file, you could write it directly to the file and get it working that way as well.

    yucca

Posting Permissions

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