×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    2

    How to scale an image in M3G?

    I want to display a 2d image at the top of the GUI for a M3G app. I want to scale the image according to the screenwidth and the height of the mobile device. I can't find any way to scale the image. I try this approach, but it just cuts a piece from the image:

    sourceH = Image.createImage("/res/header.jpg" );
    sourceH = Image.createImage(sourceH,0,0,300,100,Sprite.TRANS_NONE );

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to scale an image in M3G?

    Have you really tried searching? Anyway, check http://projects.developer.nokia.com/imagelib or http://www.developer.nokia.com/Commu...he_Screen_Size
    If you already have M3G library in use, you can also experiment with Sprite3D, it can certainly scale images for you.

  3. #3
    Registered User
    Join Date
    Oct 2012
    Posts
    2

    Re: How to scale an image in M3G?

    Thanks, it worked!

Similar Threads

  1. How to scale a background image using Polish
    By tavez04 in forum Mobile Java General
    Replies: 3
    Last Post: 2009-11-06, 10:42
  2. Replies: 1
    Last Post: 2009-05-24, 03:21
  3. error=4 when try to scale the image
    By sandy_zeng in forum Symbian
    Replies: 3
    Last Post: 2007-10-28, 14:27
  4. How to disable scale down of image in MMS?
    By mozat in forum General Messaging
    Replies: 1
    Last Post: 2002-12-02, 06:07

Posting Permissions

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