×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2012
    Location
    Lahore, Pakista
    Posts
    58

    Display image cutting from ends, in some devices

    I am trying to display a Logo image in center of a form, image is being displayed right but just in some of the devices it is more towards right with a part of image hidden or cutting! Surprisingly both devices I checked this are S40 series, Nokia X2-05 and Nokia X2-01. While the first one shows logo fine the second one produces issue, I don't know why it behaves like that, anybody have any idea?

  2. #2
    Registered User
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    161

    Re: Display image cutting from ends, in some devices

    The problem is in your layout, the X2-01 has a resolution of 320x240 whereas the X2-05 has a resolution of 240x320. You'll need to make your layout more generic or use custom sized images for different resolution devices.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Location
    Lahore, Pakista
    Posts
    58

    Re: Display image cutting from ends, in some devices

    Quote Originally Posted by grift View Post
    The problem is in your layout, the X2-01 has a resolution of 320x240 whereas the X2-05 has a resolution of 240x320. You'll need to make your layout more generic or use custom sized images for different resolution devices.
    Ok, but how do I make it possible to use my image as custom image on a form rather than a canvas? (Point to note that my images is not as big as the width of any of these two mobile's screen, it's just a normal size image)

  4. #4
    Registered User
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    161

    Re: Display image cutting from ends, in some devices

    I'd use something like the following pseduo-code...

    Code:
    if (Displayable.getWidth() == 240) {
     // display image x
    } else if (Displayable.getWidth() == 320) {
     // display image y
    }

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    680

    Re: Display image cutting from ends, in some devices

    Different screen sizes need different images unless your image is small enough that it can be used on bothh.
    For instance if its a square logo size 100x100 then it would fit in both of the mentioned screens.

  6. #6
    Registered User
    Join Date
    Feb 2005
    Location
    Campina Grande/PB - Brazil
    Posts
    138

    Re: Display image cutting from ends, in some devices

    Quote Originally Posted by saqibatiq View Post
    I am trying to display a Logo image in center of a form, image is being displayed right but just in some of the devices it is more towards right with a part of image hidden or cutting! Surprisingly both devices I checked this are S40 series, Nokia X2-05 and Nokia X2-01. While the first one shows logo fine the second one produces issue, I don't know why it behaves like that, anybody have any idea?
    Hi saqibatiq,

    what is the dimensions (WxH) of your image?

    Can you post or attach the original file to this thread?

Similar Threads

  1. How to display large image in symbian^3 devices
    By swaroop55 in forum Mobile Java General
    Replies: 2
    Last Post: 2011-05-06, 14:30
  2. Display Large Image on device's display
    By fecxelmin in forum Mobile Java General
    Replies: 4
    Last Post: 2010-04-22, 10:24
  3. How image will display in different devices...
    By jatin.kanand in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2009-12-07, 06:22
  4. problem in display an image button on canvas(Background image)
    By mramin05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-11-12, 04:51
  5. 6310i Cutting Out
    By aslewis in forum General Development Questions
    Replies: 0
    Last Post: 2003-05-01, 14:01

Posting Permissions

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