Index: [thread] [date] [subject] [author]
  From: Jason Grosland <jcg3@cs.duke.edu>
  To  : 
  Date: Tue, 20 Apr 1999 04:09:16 -0400

Re: drawImage

try:

Graphics g = myCanvas.getGraphics();
g.drawImage(myImage, 0, 0, null);

the fourth parameter to drawImage should be null, unless you want to
notify some class that your image has finally been painted by the graphic
(it spawns another thread to accomplish the drawing of the image).

...jason

  { jcg3@cs.duke.edu * www.duke.edu/~jcg3 * 919.613.1354 * 108 House P }

On Tue, 20 Apr 1999, Gordon Lane Blundell III wrote:

> I have created a canvas in my applet and I want to use drawImage(myImage, 0,
> 0, myCanvas) to paint an image onto this canvas. This however is not
> working. I do not see any examples of drawing on an Object other that the
> applet itself, is it outlawed? and is there an alternative? thanks
> 
> lane
> glb4@acpub.duke.edu
> 
> 
> 
> 




Index: [thread] [date] [subject] [author]