Article View: borland.public.jbuilder.java.api
Article #736Re: Save JFrame Canvas to gif/jpeg?
From: Valentino Kyriakides
Date: Mon, 02 Dec 2002 21:49
Date: Mon, 02 Dec 2002 21:49
21 lines
1583 bytes
1583 bytes
I'am not sure about this, but maybe the "java.awt.Robot" class is helpful here in conjunction with java's gif file saving capabilities. See: http://developer.java.sun.com/developer/TechTips/2000/tt0711.html See especially the "createScreenCapture(Rectangle screenRect) " method: http://java.sun.com/j2se/1.3/docs/api/java/awt/Robot.html -Valentino "Werner Nussbaumer" <w.nussbaumer@datacomm.ch> schrieb im Newsbeitrag news:3DEBC851.CCA210B7@datacomm.ch... > How can I save the displayed canvas of a JFrame into a file (gif or > jpeg)? > > Is there a function in JDK 1.3.1? > > Thanks a lot in advance > Regards > Werner Nussbaumer
Technical Details
Message-ID:
<3debd513@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3DEBC851.CCA210B7@datacomm.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,17e8fd44e6efbd7c,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-12-02 13:50:40 PST From: "Valentino Kyriakides" <vkyriakides@lweb.de> Newsgroups: borland.public.jbuilder.java.api References: <3DEBC851.CCA210B7@datacomm.ch> Subject: Re: Save JFrame Canvas to gif/jpeg? Date: Mon, 2 Dec 2002 22:49:32 +0100 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.224.53.245 Message-ID: <3debd513@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038865683 212.224.53.245 (2 Dec 2002 13:48:03 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail