Article View: borland.public.jbuilder.java.swing
Article #9167Re: Getting an image representation of a component
From: Johan Forsberg
Date: Mon, 22 May 2000 00:00
Date: Mon, 22 May 2000 00:00
12 lines
1018 bytes
1018 bytes
David R. Robison <CMCorinne@earthlink.net> skrev i diskussionsgruppsmeddelandet:39254CFB.8232A3EA@earthlink.net... > What I would like to do is capture the present graphical representation > of a component into an Image that I could then save (in some format e.g. > BMP) to a file. Does anyone know how to do this? Component c=...; Rectangle b=c.getBounds(); Image i=c.createImage(b.width, b.height); c.paint(i.getGraphics());
Technical Details
Message-ID:
<8gaku7$kd74@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39254CFB.8232A3EA@earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,51d4d0b2b4f6c621 X-Google-Attributes: gid111d45,public From: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> Subject: Re: Getting an image representation of a component Date: 2000/05/22 Message-ID: <8gaku7$kd74@bornews.borland.com> X-Deja-AN: 625748566 References: <39254CFB.8232A3EA@earthlink.net> 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