×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    80

    Display Large Image on device's display

    How do i display the full image that is larger in size than the device display's size?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Display Large Image on device's display

    Quote Originally Posted by fecxelmin View Post
    How do i display the full image that is larger in size than the device display's size?
    You can scroll that on the key events!!!
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,558

    Re: Display Large Image on device's display

    Or you can scale down the image so that it fits the screen resolution.

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Display Large Image on device's display


  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Display Large Image on device's display

    Place it on a Form, as an ImageItem, and you can see it scrolling thu.

    or scale down - resize the image to match yiur screen size and display full.

    PHP Code:
    private Image createThumbnail(Image image) {
        
    int sourceWidth image.getWidth();
        
    int sourceHeight image.getHeight();
        
        
    int thumbWidth 64// put the target screen width
        
    int thumbHeight = -1;
        
        if (
    thumbHeight == -1)
          
    thumbHeight thumbWidth sourceHeight sourceWidth;
        
        
    Image thumb Image.createImage(thumbWidththumbHeight);
        
    Graphics g thumb.getGraphics();
        
        for (
    int y 0thumbHeighty++) {
          for (
    int x 0thumbWidthx++) {
            
    g.setClip(xy11);
            
    int dx sourceWidth thumbWidth;
            
    int dy sourceHeight thumbHeight;
            
    g.drawImage(imagedxdyGraphics.LEFT Graphics.TOP);
          }
        } 
    thanks,
    ~Amitabh
    Last edited by im2amit; 2010-04-22 at 10:30.

Similar Threads

  1. resize image and display in list box
    By chinnu_p in forum Mobile Java General
    Replies: 2
    Last Post: 2009-12-30, 11:48
  2. Dealing with large image..
    By deny_winarto in forum Mobile Java General
    Replies: 15
    Last Post: 2009-09-16, 02:59
  3. Replies: 2
    Last Post: 2009-08-27, 18:42
  4. Load an Image and Display
    By Christian V Petersen in forum Mobile Java General
    Replies: 4
    Last Post: 2005-12-06, 01:40

Posting Permissions

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