Re: converting display to jpeg or gif file

  • To: Yakup Bayram <ybayram@xxxxxxxx>
  • Subject: Re: converting display to jpeg or gif file
  • From: Tom Whittaker <tomw@xxxxxxxxxxxxx>
  • Date: Wed, 6 Feb 2002 08:55:05 -0600 (Central Standard Time)
On Wed, 6 Feb 2002, Yakup Bayram wrote:

> Hello,
> I am using Visad to display Antenna Array pattern.
> I need to save the array pattern display as gif , jpeg or bmp. Is there any 
> way of doing this in java?
> Thanks

The static method:

visad.util.Util.captureDisplay(DisplayImpl disp, String filename)

will take the contents of the 'disp' and save it to 'filename' in
JPEG format.

tom

--
Tom Whittaker
University of Wisconsin-Madison
Space Science and Eng. Center
ph:  608.262.2759