head	1.7;
access;
symbols;
locks
	nobody:1.7; strict;
comment	@# @;


1.7
date	99.09.22.08.23.09;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.09.22.08.22.07;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.06.09.05.22.35;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.06.09.05.21.53;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.06.09.05.21.13;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.06.09.05.21.08;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.06.09.05.21.03;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.7
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 119
IDependOn-Set: 199
IDependOn-Set: 2
IDependOn-Set: 204
IDependOn-Set: 205
LastModifiedSecs: 937988589
Parent: 119
SequenceNumber: 4
Title: How do I create an image with a servlet, for example, a graph out of a list of values? 
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 928905713
Type: html
Lines: 20
Servlets allow you to specify the content type of the
        response. This ability let you generate dynamic images simply mapping the &lt;img&gt; tag
        with the proper servlet URL. To do this, you need to generate an off-screen image object
        and send it encoded in your favorite image format. Free GIF image encoders are not
        available due to patent restrictions, while JDK 1.2 contains a JPG image encoder (and few
        others like PNG may be added in the future).<p>To create an off-screen image you could
        follow these guidelines:</p>
        <blockquote>
          <pre>Frame f = new Frame();

f.addNotify() // &lt;-- this creates a &quot;frame peer&quot;, which makes it all work

Image img = f.createImage();
doMyPaintImage(img.getGraphics());

(etc.)</pre>
        </blockquote>
        <p>Note that it apparently needs to be a Frame since Canvas doesn't seem to work. It
        probably just calls for the toplevel window component to do the job. (Thanks to Bjorn
        Sandberg).
EndPart: 0
Part: 1
Author-Set: rbk@@ebs.hw.ac.uk
HideAttributions: 1
LastModifiedSecs: 937988588
Type: html
Lines: 1
If you are running on a Unix box, then to create a Frame the Java process needs access to a X server (and the DISPLAY environment variable set). If you do not want the overhead of running an X server, then you can use Xvfb which creates a virtual X server.
EndPart: 1
@


1.6
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 937988526
d9 1
a9 1
SequenceNumber: 3
d40 2
a41 1
LastModifiedSecs: 937988526
@


1.5
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 928905713
d9 1
a9 1
SequenceNumber: 2
d38 7
@


1.4
log
@null
@
text
@d6 1
@


1.3
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 928905673
d8 1
a8 1
SequenceNumber: 1
d10 27
@


1.2
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 928905663
d8 2
a9 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d3 1
@
