×

Discussion Board

Results 1 to 2 of 2

Thread: Canvas Drawing

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Canvas Drawing

    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
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Canvas Drawing

    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
  •  
×