×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Question How to draw large image in canvas and move upon key event

    Hello,

    I have a large image. This image has some text for user. So I must not resize the image to fit in the smaller screen. Image is much larger than device screen size. My intention is to draw the complete image in canvas without comprising size. I want to move image bit by bit upon user key event (left, right, up, down), something like scrolling.

    I can draw an image in canvas by:-

    g.drawImage(image, 0, 0, Graphics.TOP | Graphics.LEFT);

    I don't know how to act according to key event to bring other parts of the images like scrolling.
    I have seen many j2me game has such feature.
    Can you body tell me where to look for this information? Thanks!
    Do it now! Today will be yesterday tomorrow - MadSum

  2. #2
    Nokia Developer Moderator
    Join Date
    Dec 2011
    Posts
    174

    Re: How to draw large image in canvas and move upon key event

    Hi Madsum,

    Below is a wiki link how to scroll images with touch and keypressed events.

    http://www.developer.nokia.com/Commu...ing_in_Java_ME

    Regards,
    tiviinik

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: How to draw large image in canvas and move upon key event

    Thanks Tiviinik! It has exactly right information.
    Do it now! Today will be yesterday tomorrow - MadSum

Similar Threads

  1. move image without draw
    By moabiran in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2011-05-09, 19:46
  2. draw large image on screen and scroll
    By vinaykk in forum Symbian User Interface
    Replies: 9
    Last Post: 2009-06-10, 08:00
  3. Canvas: How to draw a Rect around an image?
    By ricardopcunha in forum Mobile Java General
    Replies: 2
    Last Post: 2009-02-10, 17:34
  4. Draw Transparent png Image on Canvas
    By Stalkin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2008-09-24, 19:19
  5. Replies: 2
    Last Post: 2008-06-19, 07:02

Posting Permissions

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