Zabid,
Marty Hall's Chapter 7 describes how to solve half of your problem
(generating a gif with user specified text).  The other half of can be done
using the getImage(String fileName) or getImage(URL) methods of
java.awt.Toolkit.  You'll need to use
        Image image = Toolkit.getDefaultToolkit().getImage(...);

to first get the GIF image into an Image object, and then use the JDK1.1
drawXXX or fillXXX methods or JDK1.2 Graphics2D methods to draw text on top.
and then output it in a servlet response.

-Richard

-----Original Message-----
From: Shawn Blewett [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:25 PM
To: [EMAIL PROTECTED]
Subject: Re: writng text over gif file


Hey Zabid -

I believe that this has already been done. Check out Core Servlets and
JavaServer Pages by Marty Hall. You could also go to the web site.

http://archive.coreservlets.com/

There are some examples under chapter 7 that might help you

Later,
- Shawn

At 12:41 PM 3/30/01, you wrote:
>Hi All,
>
>                            I am doing R&D on
>interesting topics. We are planning to give a facility
>to our user in which he will be able to write few
>wordings on his gif fle or on his bmg file. For
>example let us assume that you want to put your own
>snap in your web site that has been hosted by me. And
>you want to put a line over your snap stating that hey
>this snap is belong to Mr. john or ... . Basically I am
>tying to write words over a gif file.
>
>
>Any idea or suggestion is highly appreciable
>Thanks
>Zabid
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/?.refer=text
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to