×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    18

    SVG to CFbsBitmap

    hi
    is there any API that I can pass to the location of an SVG image file and would return a CFbsBitmap (the bitmap representation of it)?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: SVG to CFbsBitmap

    Quote Originally Posted by janaja View Post
    hi
    is there any API that I can pass to the location of an SVG image file and would return a CFbsBitmap (the bitmap representation of it)?
    AFAIK there are no APIs to even read SVG

  3. #3
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: SVG to CFbsBitmap

    SVG file is convert into .mif during compile time, and you can create icon from it. for more info, you can refer to http://wiki.forum.nokia.com/index.ph...58_-_Using_SVG

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: SVG to CFbsBitmap

    Quote Originally Posted by janaja View Post
    hi
    is there any API that I can pass to the location of an SVG image file and would return a CFbsBitmap (the bitmap representation of it)?
    You can use the mifconv utility mentioned here to create the mbg/mif file and then use something like this to get the bitmaps to use programatically.

    Cheers,
    Mayank

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: SVG to CFbsBitmap

    Quote Originally Posted by JackSu View Post
    SVG file is convert into .mif during compile time, and you can create icon from it. for more info, you can refer to http://wiki.forum.nokia.com/index.ph...58_-_Using_SVG
    Quote Originally Posted by mayankkedia View Post
    You can use the mifconv utility mentioned here to create the mbg/mif file and then use something like this to get the bitmaps to use programatically.

    Cheers,
    Mayank
    Agree with you both. but original problem is to solve "SVG to CFbsBitmap" at runtime

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    18

    Re: SVG to CFbsBitmap

    Hi guys
    I dont mind converting the SVGs to MIFs during compile time but:

    What is MIF, do I loose the colours in my icon (does MIF has anything to do with the icon being mono-colour)?

    and in "AknIconUtils::CreateIconL" API what does the last two integers arguments refer to (const TInt aFileBitmapId, const TInt aFileMaskId) ?

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: SVG to CFbsBitmap

    MIF=Multi-Image File.
    Due to the "multi", a single file can contain multiple images. And S60 also supports masks for the SVG-s, that is why you can specify the id for the mask too. These identifiers are generated into the file you specify to the /h (as header) switch of mifconv.

    If you have S60 3rd ed. FP1/FP2 or some S60 5th edition SDK, you should check Graphics example. And of course the link is still there in JackSu's post (#3).

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    18

    Re: SVG to CFbsBitmap

    btw, whats MBM files and whats the difference between MBMs and MIFs?

  9. #9
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: SVG to CFbsBitmap

    Quote Originally Posted by janaja View Post
    btw, whats MBM files and whats the difference between MBMs and MIFs?
    mbm .. MultiBitMap only supports Multiple Bitmaps, but MIF supports other formats like svg(tsvg) too.

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: SVG to CFbsBitmap

    Just for completeness, straight from the SDK :-

    Graphics files
    .mif files - Machine-readable files with all the SVG-t icons packed into them. The .mif files are created by compiling .svg (vector-graphics tiny) images with the MifConv tool.

    .mbm (multi-bitmap) files - machine readable files with all bitmaps packed into them. The mbm files are created by compiling bitmap files with the bitmap converter (bmconv) tool or with the MifConv tool. The .mbm files can also be made by writing a declaration block in the .mmp file.

    .mbg files - header files for .mbm and .mif files that are included in files as required to use the icons contained in the .mbm or .mif file.

    .mbg files are generated by the bmconv or MifConv tools when compiling the .mbm or .mif files.

    Cheers,
    Mayank

  11. #11
    Registered User
    Join Date
    May 2009
    Posts
    18

    Re: SVG to CFbsBitmap

    Sorry to bother but if any of you guys have an answer to the following question it would be much appreciated:
    http://discussion.forum.nokia.com/fo...d.php?t=168136

  12. #12
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Re: SVG to CFbsBitmap

    Symbians CImageDecoder does seem to support also SVG.

Similar Threads

  1. TinyLine SVG Player and SDK 1.8.2 released.
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-03-10, 07:32
  2. TinyLine SVG Player and SDK 1.8.2 released.
    By girow in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-03-10, 07:31
  3. TinyLine SVG Player and SDK 1.8.2 released.
    By girow in forum Mobile Java General
    Replies: 0
    Last Post: 2005-03-10, 07:30
  4. TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-05, 18:44
  5. TinyLine SVG Minute Toolkit for J2ME: version 1.4 released
    By girow in forum Mobile Java General
    Replies: 0
    Last Post: 2003-05-05, 16:25

Posting Permissions

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