[Biojava-l] logo painter
Brian Gilman
gilmanb@genome.wi.mit.edu
Fri, 11 Jan 2002 23:42:04 -0500 (EST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-1626626373-1010810524=:1288
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello please find below some code I wrote to use the jpeg codec which is a
standard part of the java 1.3 package. There is also batik (svg) code in
there. Hopefully, you'll find this code helpful.
-Brian
-----------------------
Brian Gilman <gilmanb@genome.wi.mit.edu>
Sr. Software Engineer MIT/Whitehead Inst. Center for Genome Research
One Kendall Square, Bldg. 300 / Cambridge, MA 02139-1561 USA
phone +1 617 252 1069 / fax +1 617 252 1902
On Sat, 12 Jan 2002, Mark Schreiber wrote:
> Hi I have been meaning to post this for a while, It is some source for a
> logoPainter that I made for an upcomming bioinformatics paper regarding
> the correction for signals in a biased genome.
>
> It is based on a Biojava-live (although perhaps a slightly earlier
> release so it made need the odd tweak) Anyhow it demonstrates some writing
> to Jpeg Tiff bmp etc. Uses the Java Advanced Image Library (JAI 1.1 from
> Sun). Please feel free to use / review the code as you see fit. Perhaps
> ask permission before selling it ;)
>
> I would be happy for it to be made part of the CVS if people want. It
> could probably do with some peer review so to speak as it has a few rough
> edges in the code that others might be able to make more elegant.
>
> Enjoy
>
> Mark
>
>
>
> On Fri, 11 Jan 2002, Bert Coessens wrote:
>
> > Dear all,
> >
> > Does anybody know how to write a graphics object to a jpeg file? I
> > already tried almost everything but still with no result. The code
> > beneath is what I think should work, but if I run it, I only get a black
> > image of 300 by 300. Can anybody tell me what I'm doing wrong?
> >
> > * variable dist is some distance
> > * sLogo is not a null object, I can visualise it inside a JFrame object
> >
> > code:
> > {
> > DistributionLogo sLogo = new DistributionLogo();
> > TextLogoPainter logoPainter = new TextLogoPainter();
> > sLogo.setLogoPainter(logoPainter);
> > sLogo.setStyle(new DNAStyle());
> > sLogo.setDistribution(dist);
> >
> > BufferedImage bufIm = new BufferedImage(300, 300,
> > BufferedImage.TYPE_INT_RGB);
> > Graphics g = bufIm.createGraphics();
> > logoPainter.paintLogo(g, sLogo);
> >
> > File outfile = new File("motif.jpeg");
> > FileOutputStream outstream = new FileOutputStream(outfile);
> > com.sun.image.codec.jpeg.JPEGImageEncoder encoder =
> >
> > com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(outstream);
> > encoder.encode(img);
> > }
> >
> > Thanks in advance!!
> > Bert
> >
> > _______________________________________________
> > Biojava-l mailing list - Biojava-l@biojava.org
> > http://biojava.org/mailman/listinfo/biojava-l
> >
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Mark Schreiber Ph: 64 3 4797875
> Rm 218 email mark_s@sanger.otago.ac.nz
> Department of Biochemistry
> University of Otago
> PO Box 56
> Dunedin
> New Zealand
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
--0-1626626373-1010810524=:1288
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ContigView.java"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.10.10201112342040.1288@darwin.wi.mit.edu>
Content-Description:
Content-Disposition: attachment; filename="ContigView.java"
cGFja2FnZSBvcmcuZW5zZW1ibC5kcmF3Ow0KDQppbXBvcnQgamF2YXguc3dp
bmcuKjsNCmltcG9ydCBqYXZhLmF3dC4qOw0KaW1wb3J0IGphdmEuYXd0LmV2
ZW50Lio7DQppbXBvcnQgamF2YS5hd3QuaW1hZ2UuKjsNCmltcG9ydCBqYXZh
LmlvLio7DQoNCi8qKioqKioqKioqKioqKioqKioqDQogKiBGb3IgU1ZHIEdl
bmVyYXRpb24NCiAqIEFkZGVkIDEyLzA4LzAxDQogKioqKioqKioqKioqKioq
KioqKi8NCg0KaW1wb3J0IG9yZy5hcGFjaGUuYmF0aWsuc3ZnZ2VuLio7DQpp
bXBvcnQ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