×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Icon transparency shown in gray

    Hi,

    I have an image with its mask and the transparency is shown as gray color.
    The image and its mask are bmp extension.

    Icons_scalable_dc.mk
    --------------------
    ....
    mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \
    /c32 $(ICONDIR)\qgn_menu_App.svg\
    /c24 $(ICONDIR)\action.bmp\
    /1 $(ICONDIR)\action_mask.bmp


    It is created in the following way:
    TRAP( err, AknIconUtils::CreateIconL( aBitmap, aBitmapMask, *iMifFileName, aBitmapId, aBitmapMaskId ) );

    It is shown in the following way:
    TRect iconRect( TPoint( 0, 0 ), TPoint( 0, 0 ) + iIcon->SizeInPixels() );
    iBackBufferGc->BitBltMasked( iconPos, iIcon, iconRect, iIconMask, EFalse );


    Best Regards,
    Benji.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: Icon transparency shown in gray

    BitBltMasked is affected by the current brush for some mystical reason. Make sure that you SetBrushStyle(CGraphicsContext::ENullBrush) prior to rendering the image.

  3. #3
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Thumbs up Re: Icon transparency shown in gray

    Quote Originally Posted by wizard_hu_ View Post
    BitBltMasked is affected by the current brush for some mystical reason. Make sure that you SetBrushStyle(CGraphicsContext::ENullBrush) prior to rendering the image.
    Yes, you are right.
    Symbian never cease to amaze me.

    Thank you very much.
    Benji.

Similar Threads

  1. Grid app is crashing... need urgent help...
    By shankha in forum Symbian
    Replies: 5
    Last Post: 2010-10-19, 12:07
  2. Window always at front and icon transparency problem
    By VilluNikolaiV in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-09-23, 04:38
  3. Replies: 7
    Last Post: 2007-09-05, 10:38
  4. N80 midlet icon problem revisited... questions
    By kounapuu in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-07, 20:15
  5. Replies: 0
    Last Post: 2006-03-24, 13:10

Posting Permissions

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