|
|
Re: Is it possible to save the figure file in .PNG format directly in IDL? [message #90361 is a reply to message #90349] |
Wed, 25 February 2015 18:25   |
Phillip Bitzer
Messages: 223 Registered: June 2006
|
Senior Member |
|
|
On Wednesday, February 25, 2015 at 3:27:52 AM UTC-6, Madhavan Bomidi wrote:
> Hello,
>
> I am using Coyote library in IDL. Is there a direct way to save the figure file in .PNG format instead of saving first in .PS format and then converting to a .PNG format?
>
> cgPS_Open, FigFile
>
>
> cgPS_Close
> cgPS2Raster, FigFile, /PNG
>
There are options that can control what happens to the PS file, if that's your concern.
The question is _why_ you don't want the PS file first.
While we're here, this is a little more succinct:
cgPS_Open, FigFile
...
...
cgPS_Close, /PNG
which calls cgPS2Raster under the hood.
|
|
|
|