Discussion Board

Results 1 to 2 of 2

Thread: Canvas Drawing

  1. #1
    Registered User g_haddrell's Avatar
    Join Date
    Jan 2008
    Posts
    1
    Hi,

    I currently had a TiledLayer with my images displaying successfully on the screen. What i want is for one of my tiles to change on the event of a key press. I have coded it to pick up the key press, and also coded what i want it to do. What i cannot manage to get it to do is to update the Canvas with the changes.

    Please help, this is for a university project.

    Thanks in advance.

    Glenn

  2. #2
    Nokia Developer Champion Tiger79's Avatar
    Join Date
    Apr 2007
    Posts
    2,697
    place the made chages in the overridden paint() method and call repaint() from the Canvas itself after every program iteration...

Similar Threads

  1. How to create a partly transparent Canvas to lay on top of another Canvas?
    By mkleijer in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2007-05-22, 07:00
  2. Drawing on canvas close to edge is clipping
    By james_levander in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-02-03, 21:53
  3. Which one is the fastest (in drawing) ?
    By Smori2002 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-11-12, 15:36
  4. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46
  5. 7650 and 3650 Canvas and FullCanvas memory
    By marcilgen in forum Mobile Java General
    Replies: 5
    Last Post: 2003-07-08, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved