🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9511

How do i capture the "canvas" of a JFrame (or, turn it into an Image)?

#9511
From: John Hines
Date: Mon, 06 Mar 2000 00:00
8 lines
951 bytes
I have some code I inherited where a complex image is written onto an
off-screen JFrame-derived class.  I need to write the image (don't need the
JFrame) out to a file in standard format.  This would be easy if I had the
picture as a bitmap or (preferably) as an Image.  How do I do this?

Can somebody toss me a hint or point me to a book or some commercial code?

Thanks, John Hines jrhines@onramp.net
Technical Details
Message-ID: <8a128u$35q1@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,44cc2ec39376ba71,start
X-Google-Attributes: gid111d45,public
From: "John Hines" <jrhines@onramp.net>
Subject: How do i capture the "canvas" of a JFrame (or, turn it into an Image)?
Date: 2000/03/06
Message-ID: <8a128u$35q1@bornews.borland.com>
X-Deja-AN: 593939375
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing