×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155

    Memory consumed must vary with different ColourDepth

    I'm using CImageLoader to load imgs

    Load()
    {
    User::CountAllocCells(); // tells how many cells used till now
    ..
    iTempBitmap = new(ELeave) CFbsBitmap();
    iTempBitmap->Create( TSize(1,1), KDeviceColourDepth );
    iImgLoader->LoadFileL(iTempBitmap, iFileName, 0 );
    ...
    }

    ImageOperationCompleteL(TInt aError)
    {
    User::CountAllocCells(); // tells how many cells used till now
    }

    ------------

    my question is : With varying KDeviceColourDepth (EGray2, EGray256, EColor4K , EColor16M) CountAllocCells() must return different
    cell count. i.e. memory consumed must increase.

    But it remains constant !!!!!

  2. #2
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155
    One more point

    NOKIA uses 4096 color palette in mobile. So I understand why
    size does not change till EColor4K. But after that ?

    Also In my PC days, changing image palette, changes img on screen but here I'm setting EGray2/EGray256 palette but no difference.

    pal = CPalette::NewDefaultL(EGray256);

    iTempBitmap = new(ELeave) CFbsBitmap();
    iTempBitmap->Create( TSize(1,1), KDeviceColourDepth );
    iTempBitmap->SetPalette(pal);


    I'm bit confused abt how palettes r used in MOBILE.

    Any help, DOC will be helpful.


    saur

Posting Permissions

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