(keitai-l) Re: "Image drawing not in paint method"

From: Claus Hoefele <claus.hoefele_at_gmail.com>
Date: 06/17/05
Message-ID: <9f8ab7ef05061619473ed6431a@mail.gmail.com>
If you need an offscreen image, have a look at
com.nttdocomo.ui.Image.createImage(). Use image.getGraphics() to draw
on your image. To display the image on the screen, use
grapics.drawImage() in your paint() method. paint() is only called
when needed or when you call repaint(). You can avoid drawing your
image unnecessarily by avoiding too many repaint() calls, but you have
to call repaint() at least once when the image changed.

Alternatively, you can have a look whether
com.nttdocomo.ui.VisualPresenter can do the job. It is a high-level UI
object that handles drawing images without the need for additional
code.

> Any help from anyone will be ... implemented. 
You are brave!

Claus

On 6/16/05, Kapil Sharma <kapes.endless@gmail.com> wrote:
> Hello
> 
> I do not want to call the paint method again and again to draw my image object.
> 
> Therefore Is there any method or ImageDrawing API like createImage
> available in Doja which can draw image without calling the repaint
> method.
> 
> Any help from anyone will be appreciated and implemented.
> 
> Thanks and Regards
> 
> Kapil Sharma
> 
> This mail was sent to address claus.hoefele@gmail.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
> 
>
Received on Fri Jun 17 05:47:53 2005