×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Display SVG icon with binary data

    Hello,

    On 5th edition devices (e.g. Nokia N5800) I cannot load SVG images correctly which contain non-vector data (e.g. from embedded images). On other plattforms, like on the N95 this works fine.

    Is there a workaround to load such SVG files?

    Regards,

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

    Re: Display SVG icon with binary data

    Can you show us how you are using the SVG images. note that only TSVG format is use in Symbian devices.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Display SVG icon with binary data

    It is more peaceful to avoid "bitmap SVG"-s. They are not real SVG-s anyway, and .mbm-s still work.

  4. #4
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: Display SVG icon with binary data

    At the moment I have completely switched to transparent pngs, but loading is very slow compared to mbms (consisting of bmp and bmp mask). But the problem is, that the scaled bmp/mask produces white pixels around objects due to scaling effects. Are there tricks to avoid these "effects"?

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Display SVG icon with binary data

    Scaling is not a strength of bitmaps, and if you want transparency, it gets worse.
    However if you mean white extras on the right and on the bottom of the bitmap (and never on the top/left), that is probably not about scaling the bitmap, but simply resizing it (CFbsBitmap::Resize simply reduces/enlarges the extents of the image). TRect-using DrawBitmap is the simplest way to scale a bitmap, but it certainly uses a nearest-pixel sampling, which can create annoying artifacts if the new size is close to the original. There is a class, CBitmapScaler, but I do not know if it uses a more sophisticated sampling approach.

Similar Threads

  1. Display binary data of RBuf8
    By gunajit9 in forum Symbian
    Replies: 4
    Last Post: 2009-09-30, 09:39
  2. SVG icon display problem
    By foosion in forum Symbian
    Replies: 4
    Last Post: 2009-09-07, 00:48
  3. Retaining SVG icon data after loading and using it
    By Faider in forum Symbian User Interface
    Replies: 6
    Last Post: 2009-05-15, 08:13
  4. SVG Icon and display resolution
    By muntain in forum Symbian
    Replies: 8
    Last Post: 2007-08-31, 10:57
  5. SVG icon can't display in Listbox on 3rd
    By iamphilip in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-04-30, 04:29

Posting Permissions

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