×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    How to decode an image with low depth ?

    hi,

    I am using CImageDecoder to decode an image(any type rgb image) to bitmap. While decoded using the code below:

    Code:
    ibitmap->Create(iImageDecoder->FrameInfo(0).iOverallSizeInPixels, iImageDecoder->FrameInfo(0).iFrameDisplayMode);
    iState = EConverting;
    iImageDecoder->Convert(&iStatus,*ibitmap,0);
    SetActive();
    This code works asynchronously. After i get the bitmap, i find that each pixel is having depth 4, i.e. red, green, blue and alpha. But i need only image decoded as black & white... or grey-scale (of depth 1). I need it because of low device memory. Later on i have to resize the image that should be done using the same depth, that is depth 1. I looked at SDK but could not understand everything there. There they used a term as "EGray2", and "EGray256", but it is used in Simple on/off masking . Any of your suggestion would help me.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to decode an image with low depth ?

    check what values can be given in the place you are using iImageDecoder->FrameInfo(0).iFrameDisplayMode

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: How to decode an image with low depth ?

    Yes that's a good suggestion. I am applying soon.

Similar Threads

  1. Encode and Decode image from server to device
    By akmmaurya in forum Mobile Java General
    Replies: 8
    Last Post: 2010-09-15, 11:22
  2. How to decode and display transparent image?
    By nadis in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-08-03, 10:41
  3. getting the color depth
    By Liyo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-08-30, 11:32
  4. color depth 18 bit
    By limingchina in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-08-10, 11:02
  5. image color depth
    By ffunus in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2004-05-03, 07:57

Posting Permissions

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