[1482] in java-interest

home help back first fref pref prev next nref lref last post

Re: images and applications

daemon@ATHENA.MIT.EDU (Jim Graham)
Tue Sep 5 20:54:39 1995

Date: Tue, 5 Sep 1995 15:07:34 -0700
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, dmath@cs.wustl.edu


Hi David,

> I didn't receive any responses the first time I posted
> this so I am trying again.

Sorry, I was hoping that our overloaded support staff would answer this
one, but since you repeat the question...

> I am writing a stand-alone application that opens a
> window and draws in it.  One of the things drawn is
> an image (a gif).  Periodically it is necessary to
> relocate the image.  Is there a clean way to do this 
> in a stand-alone app?  Thanks for any help you can
> provide.

I don't understand the problem.  Images aren't sprites.  You don't
"move them around".  You simply render them where you want them with
Graphics.drawImage.  That is an atomic operation.  If you want them
somewhere else, you then erase the old location and draw the image
in the new location using another call to Graphics.drawImage.  Does
that answer your question?

				...jim
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post