Hi,
You can do the following:
//create an unshown frame
frame = new Frame();
frame.addNotify();
// get a graphic region
Image im = frame.createImage(yourWidth, yourHeight);
// get the Graphics
Graphics g = im.getGraphics();
// draw your desired image
g.draw...
// encode the content of the image into a GIF using a GIF encoder API
// out is the JSP out stream
GifEncoder encoder = new GifEncoder(image, out);
encoder.encode();
That's all
Babar Bhutta wrote:
> Hi Everybody,
> I am trying to find a way to create dynamic images in
> JSP. If somebody know about it or know the examples, please let me know.
> Thanks.
> Babar Bhutta.
> Aptis Software,
> Austin, TX .
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets