🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #20079

Re: How do you translate a frame or applet into a bitmap?

#20079
From: Tres Seaver
Date: Wed, 29 Oct 1997 00:00
25 lines
1222 bytes
Jeff Kuo wrote:

> I would like to find a way to print screen/frame/applet or print a
> clipped area of the screen.
> How do you turn a frame, applet or a screen area into image so I can
> assign it to the
> graphics I get from PrintJob.
> I understand how to use PrintJob, I just need to find out how I can draw
> a frame or any screen area in the graphics object.
> It would be nice if I can just call Win API....but that would make it
> platform specific.
>
> Jeff Kuo
> Response Data Corp.

Turn it around and pass the print job's graphics member to the frame:

  frame1.paint( printJob1.getGraphics() );

--

Tres Seaver   tseaver@palladion.com
Palladion Software  http://www.palladion.com
Houston, Texas   (713) 523-6582
Technical Details
Message-ID: <3457B85F.19BFADDD@ect.enron.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <344F774D.4C4E6086@rovendino.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a77924bacd79de72
X-Google-Attributes: gidf74b3,public
From: Tres Seaver <tseaver@ect.enron.com>
Subject: Re: How do you translate a frame or applet into a bitmap?
Date: 1997/10/29
Message-ID: <3457B85F.19BFADDD@ect.enron.com>
X-Deja-AN: 285841990
References: <344F774D.4C4E6086@rovendino.com>
Reply-To: tseaver@ect.enron.com
Organization: ECT
Newsgroups: borland.public.jbuilder.java.language