On way to accomplish this is to create a BufferedImage and then manipulate
the image using Graphics2d.  Once the image is created, a jpeg encoder can
be used to send it to a browser. Sun ships a JPEG encoder with 1.2. The
compression algorithms are available and an all java version can be created.

BufferedImage img =drawChart();
OutputStream out = response.getOutputStream();
JpegEncoder jpg=new JpegEncoder(img,100,out);
jpg.Compress();


Good Luck
Pete Seymour

------Original Message------
From: you sheng chang <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: January 25, 2000 2:25:49 PM GMT
Subject: graphics server


Hi:
maybe this is non-related. However I think someone
in this group maybe know.
I want to get some graphics server product which is
run in the server. It should be similiar like yahoo
finincial chart. user can dynamically get the stock
chart (graphics file from the server) Hopefully it
will have some interface to java.

Thanks

you sheng

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
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

.................................................................................
iWon.com     http://www.iwon.com     why wouldn't you?
.................................................................................

___________________________________________________________________________
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