×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    227

    Use SVG file build from Inkscape cannot be resize?

    Hi I using Inkscape to convert my jpg file to svg (embed)

    I'm using the svg for splash screen, but when I resize on code why the image cannot be resize?
    It still on its default size

    I'm using this code to resize :

    Code:
    AknIconUtils::SetSize(iFrameImg, aRect.Size(), EAspectRatioNotPreserved);
    AknIconUtils::SetSize(iFrameMsk, aRect.Size(), EAspectRatioNotPreserved);
    When I use other svg file (not convert from Inkscape) the svg can be resize with that code

    Is that image converted from Inkscape cannot be resize with that code ?


    Thanks
    Last edited by Kaz32; 2012-02-08 at 11:17.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: Use SVG file build from Inkscape cannot be resize?

    How did you load the image & mask ?

    You could always read the API docs as well, it clearly states:

    "Initializes the icon to the given size, if the parameter aBitmap is an instance of CAknBitmap, i.e.

    created with AknIconUtils methods. If it is not CAknBitmap, this method does nothing..."

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

    Re: Use SVG file build from Inkscape cannot be resize?

    Check if there is a viewbox attribute, I am not sure if Inkscape is generating it. If it is not there, the scalability is gone on many devices: http://www.developer.nokia.com/Commu...wBox_attribute

  4. #4
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    227

    Re: Use SVG file build from Inkscape cannot be resize?

    Quote Originally Posted by wizard_hu_ View Post
    Check if there is a viewbox attribute, I am not sure if Inkscape is generating it. If it is not there, the scalability is gone on many devices: http://www.developer.nokia.com/Commu...wBox_attribute
    Thanks wizard_hu_

    I add the viewbox attribute, and now the svg can be resize

Similar Threads

  1. Problem: Inkscape SVG -> SVG2SVGT don't work in Netbeans 6.1
    By d-safety in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-08-21, 22:54
  2. Great, and works also with Inkscape
    By internetlabor in forum Automatic Feedback Channel
    Replies: 4
    Last Post: 2010-03-17, 13:28
  3. [moved] Using Inkscape to create application SVG icons
    By grekker in forum News and Announcements
    Replies: 2
    Last Post: 2009-12-27, 09:14
  4. How to resize JPEG data berfore save file?
    By Mozart2007 in forum Symbian
    Replies: 3
    Last Post: 2009-04-29, 08:59
  5. Inkscape for creating svg icons
    By patrickfrei in forum Symbian
    Replies: 2
    Last Post: 2006-12-18, 13:26

Posting Permissions

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