Discussion Board

Results 1 to 3 of 3

Thread: Moving an image

  1. #1
    Regular Contributor
    Join Date
    Mar 2009

    Moving an image

    i want to move a image from one point to another by dragging.if i leave dragging in between(without reaching to the another point)
    then image should go back to their intial position.how do i implement this?????

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Moving an image

    Implement that sentence in C++. Store the initial coordinates when dragging starts, and check the end coordinates when it ends. If the end coordinates indicate that the user has dragged the item all the way to some accepted location, consider the drag complete (you can adjust the coordinates for providing a better look), otherwise restore the original coordinates.

  3. #3
    Registered User
    Join Date
    May 2008

    Question Re: Moving an image

    I am also doing something similar.
    I know the logic for detecting drags.
    But i want info about moving the image.
    I saw the graphics ex in the s60 sample apps.
    There they are redrawing both the sprites as well as the background every time the timer ticks.
    Do i have to redraw the background as well as foreground every time?
    Isnt there a better option available.

Similar Threads

  1. Moving Focus from one image to other image.
    By crazystar in forum Mobile Java General
    Replies: 3
    Last Post: 2007-09-25, 11:37
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 07:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 10:58
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 16:31

Posting Permissions

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