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)?
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)?
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
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) ?
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).
btw, whats MBM files and whats the difference between MBMs and MIFs?
Just for completeness, straight from the SDK :-
Cheers,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.
Mayank
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