The drawImage() method is a bit more complex at the second
look at the API spec. It works in the background, so if you 
want to make shure that the image has been drawn you need an 
image observer to tell you this.

If you want to find out if this is the problem you can
do following check:

if (! g.grawImage(img,0,0,null)) {
  // needsObserver;
}


I'm not very familiar with this, as we use JAI to
scale images on the serverside. 
Didn't do much with AWT.

> -----Ursprüngliche Nachricht-----
> Von: yilmaz [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 13. März 2002 02:44
> An: Tomcat Users List
> Betreff: Re: image manipulating via servlets on tomcat4
<snip/>
> Thanks to all who answered my question.
> My problem is , when i load an image via Toolkit class
> like : Image img=Toolkit.getDefaultToolkit().getImage(imageURL);
> Then create a BufferedImage object to write on it.
> BufferedImage bi=new BufferedImage(.......
> Graphics g=bi.createGraphics();
> Then I call  g.drawImage(img,0,0,null);
> then i call g.drawString("mystring", int, int);
<snip/>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to