Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor Kaz32's Avatar
    Join Date
    Dec 2008
    Posts
    227
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 Kaz32's Avatar
    Join Date
    Dec 2008
    Posts
    227
    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, Announcements and Job Listings
    Replies: 2
    Last Post: 2009-12-27, 09:14
  4. How to resize JPEG data berfore save file?
    By Mozart2007 in forum Symbian C++
    Replies: 3
    Last Post: 2009-04-29, 08:59
  5. Inkscape for creating svg icons
    By patrickfrei in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved