×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Question .svg images with CFbsBitmap ?

    Hi All,

    Can we load svg images using CFbsBitmap ?

    Please reply.Thanks

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Re: .svg images with CFbsBitmap ?

    Check out the AknIconUtils::CreateIconLC(..) API.

    I'm not sure if that will load the SVG directly into CFbsBitmap, or if you first need to mifconv the svg to mif first.

  3. #3
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: .svg images with CFbsBitmap ?

    You have to convert your svg file to mif file first. You can use both mifconv.exe and Carbide C++ to do that.

    And load that MIF file to CFbsBitmap using AknIconUtils::CreateIconL or AknIconUtils::CreateIconLC

    Code:
    static IMPORT_C void AknIconUtils::CreateIconL  (  CFbsBitmap *&  aBitmap,  
      CFbsBitmap *&  aMask,  
      const TDesC &  aFileName,  
      TInt  aBitmapId,  
      TInt  aMaskId 
     )  [static] 
    
    Parameters:
     aBitmap  icon bitmap is stored here  
     aMask  icon mask is stored here  
     aFileName  File name. Can be either MBM or MIF file. Extension is changed based on the given bitmap ID.  
     aBitmapId  bitmap Id  
     aMaskId  mask Id

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Question Re: .svg images with CFbsBitmap ?

    Thanks Neois and Sander for your valuable reply...

    However I donot want to create bitmap and mask for an icon.Actually I donot want it as icon.

    I want to display full view images using svg resources...Can I do this using CFbsBitmap and BitBlt ?

    Please do reply.I will appreciate every valuable reply.

  5. #5
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: .svg images with CFbsBitmap ?

    Yes, you can do it using function I provided you. AknIconUtils::CreateIconL

    Code:
    AknIconUtils::CreateIconL(iBitmap, iBitmapMask,
    	_L("z:\\resource\\apps\\LabSVGSVG.mif"),
    	EMbmLabsvgsvgQgn_menu_svg, EMbmLabsvgsvgQgn_menu_svg_mask);
    AknIconUtils::SetSize(iBitmap, TSize(100, 100));
    AknIconUtils::SetSize(iBitmapMask, TSize(100, 100));
    To make it more clear, I have created example project for you, please download it at http://www.nuuneoi.com/neoi/tutors/s...load.php?did=1

    Hope this help,

    Sittiphol Phanvilai
    Last edited by neois; 2008-03-04 at 07:56.

Similar Threads

  1. Replies: 3
    Last Post: 2008-01-28, 14:00
  2. Replies: 1
    Last Post: 2006-11-15, 07:03
  3. Help with creating Images..Pls
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-03-02, 01:58
  4. Problem with PNG Images
    By cyphre666 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-12-12, 18:20
  5. how to convert jpg images to CFbsBitmap
    By kaumudi in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-04-22, 08:43

Posting Permissions

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