×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    SVG icon does not resize to rect size!!

    I am using SVG icons. I have converted them using the latest tool provided by Nokia. I also have added the viewbox attribute, but the icons do not resize at all.
    I am using the AknIconUtils::SetSize to set the bitmap size.
    Just to give an idea, the 8 number is an icon and it should fill the complete rect, but it seems to fill a corner only.
    svg_issue.png
    Any suggestions as to how to fix this?

  2. #2
    Regular Contributor
    Join Date
    May 2010
    Posts
    362

    Re: SVG icon does not resize to rect size!!

    Could you post the SVG icon here?
    Also have you tried SVG icons from some other source?

    And please post the code you are using to load and scale the image.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: SVG icon does not resize to rect size!!

    Quote Originally Posted by mayur_24 View Post
    I am using SVG icons. I have converted them using the latest tool provided by Nokia. I also have added the viewbox attribute, but the icons do not resize at all.
    I am using the AknIconUtils::SetSize to set the bitmap size.
    Just to give an idea, the 8 number is an icon and it should fill the complete rect, but it seems to fill a corner only.
    svg_issue.png
    Any suggestions as to how to fix this?
    Hey Mayur,

    You will need to set one more flag to set EAspectRatioNotPreserved after it'll resize. Look into below line
    AknIconUtils::SetSize(aBitmap, aSize,EAspectRatioNotPreserved);

Similar Threads

  1. How to Get size of Rect for a Text paragraph
    By kapiluiet in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-03-12, 08:43
  2. [moved] How to scale a gif to the size of the Rect
    By xiongyuwei in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2008-07-25, 09:48
  3. How can resize the large size image for sending MMS.
    By Namdeo in forum General Messaging
    Replies: 1
    Last Post: 2007-10-12, 11:34
  4. resize svg icon and CAknGrid
    By EkEk in forum Symbian
    Replies: 3
    Last Post: 2007-01-21, 20:13
  5. How to resize the image to a given rect region
    By TeachMe in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-04-13, 14:08

Posting Permissions

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