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) ; where int is an integer
It seems that i can't call g.drawImage and g.drawString methods at the same
time.
for testing i commented out the g.drawImage , and i was able to see the text
sent to the output as a jpg file.

Anyway , at last in Jason hunter's java servlet programming book on page
182, i found a similar example. I will first have a look at it.
If i still have problems i will post it to here.
Thanks everyone
Best Wishes  :)
----- Original Message -----
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 11:23 PM
Subject: AW: image manipulating via servlets on tomcat4



- Use AWT as for any gui.
  Have a look at:
  java.awt.Toolkit.getImage();
  java.awt.Image.getGraphics();
  java.awt.Graphics.drawString();

  If you did it already this way, what was your problem?

> -----Ursprüngliche Nachricht-----
> Von: yilmaz [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. März 2002 15:54
> An: Tomcat Users List
> Betreff: image manipulating via servlets on tomcat4
<snip/>
> I tried almost every way, in vain :(
<snip/>

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





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

Reply via email to