Object graphics and real postscript [message #19437] |
Mon, 27 March 2000 00:00  |
Nicolas Decoster
Messages: 34 Registered: March 2000
|
Member |
|
|
Hi !
I'm new in IDL and I am currently trying to figure how I can do
beautyfull graphs using object graphics. It looks like these objects
allow to draw almost everything I need. But the bad thing is that I did
not find how I can export my drawing into a postscript file. In fact
there is a way to create an EPS (using ClipBoard on UNIX), but the
result is a bitmap ! I want a real postscript with lines, curves, text,
etc., in postscript language.
Is there a way to do such a thing ?
Nicolas.
|
|
|
Re: Object graphics and real postscript [message #19592 is a reply to message #19437] |
Sat, 01 April 2000 00:00   |
Randall Frank
Messages: 17 Registered: October 1999
|
Junior Member |
|
|
Ok,
Prior to IDL 5.3, all methods for generating Postscript
with Object Graphics actually generate a Postscript file
containing a bitmap of the scene being drawn. That bitmap
can be at very high resolution and will match the screen
representation bit for bit (all OG features are supported).
In IDL 5.3, support for true vector output was
added to Obejct Graphics. There are two forms:
IDLgrPrinter::Draw,/VECTOR
If /VECTOR is specified, the output sent to the
printer will be vectors, in the natural format for the
host platform (e.g. could be PostScript, could be PICT...).
IDLgrClipboard::Draw,FILENAME=f,/POSTSCRIPT,/VECTOR
The new keywords allow one to write an image
representation directly to a file or the system clipboard
as a bitmap or in vector form. By default, the file would
be the host platform native vector form (e.g. PostScript,
EMF, or PICT). If the POSTSCRIPT keyword is set, a
PostScript file will be generated (on all platforms).
I believe the Postscript generated by this object
is EPS.
See the section: "New Vector Output of Object Graphics"
In the 5.3 "What's new..."
Note: I am not sure all object graphics features are
supported in vector graphics output (e.g. translucent
textured polygons), but I may be mistaken.
Mark Hadfield wrote:
>
> "David Fanning" <davidf@dfanning.com> wrote in message
> news:MPG.1349819a77d14acc989aac@news.frii.com...
>>
>> And, unless I am mistaken, the clipboard object also does
>> not support encapsulated PostScript, but rather just PostScript
>> if the PostScript keyword is set on the Draw method.
>
> I think you ARE mistaken, David. The output from the IDLgrClipboard object
> certainly looks likes EPS to me.
>
> ---
> Mark Hadfield
> m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
> National Institute for Water and Atmospheric Research
> PO Box 14-901, Wellington, New Zealand
--
rjf.
Randy Frank | ASCI Visualization
Lawrence Livermore National Laboratory | rjfrank@llnl.gov
B451 Room 2039 L-561 | Voice: (925) 423-9399
Livermore, CA 94550 | Fax: (925) 423-8704
|
|
|
|
|
Re: Object graphics and real postscript [message #19692 is a reply to message #19437] |
Thu, 13 April 2000 00:00  |
Theo Brauers
Messages: 58 Registered: November 1997
|
Member |
|
|
Thanks for the hint using /VECTOR. I even tried it with the
live_tools:
IDL> live_print, /vector, /dialog
and it gave me a nice vector ps file. However,
IDL> live_print, /vector, FILENAME='idl.ps', /POSTSCRIPT, /VECTOR
failed since FILENAME and POSTSCRIPT keywords were unknown.
Any idea to directly print an insight/live_plot image to ps-file or
eps-file?
Thanks
Theo
Randall Frank wrote:
>
> Ok,
> Prior to IDL 5.3, all methods for generating Postscript
> with Object Graphics actually generate a Postscript file
> containing a bitmap of the scene being drawn. That bitmap
> can be at very high resolution and will match the screen
> representation bit for bit (all OG features are supported).
>
> In IDL 5.3, support for true vector output was
> added to Obejct Graphics. There are two forms:
>
> IDLgrPrinter::Draw,/VECTOR
>
> If /VECTOR is specified, the output sent to the
> printer will be vectors, in the natural format for the
> host platform (e.g. could be PostScript, could be PICT...).
>
> IDLgrClipboard::Draw,FILENAME=f,/POSTSCRIPT,/VECTOR
>
> The new keywords allow one to write an image
> representation directly to a file or the system clipboard
> as a bitmap or in vector form. By default, the file would
> be the host platform native vector form (e.g. PostScript,
> EMF, or PICT). If the POSTSCRIPT keyword is set, a
> PostScript file will be generated (on all platforms).
> I believe the Postscript generated by this object
> is EPS.
>
> See the section: "New Vector Output of Object Graphics"
> In the 5.3 "What's new..."
>
> Note: I am not sure all object graphics features are
> supported in vector graphics output (e.g. translucent
> textured polygons), but I may be mistaken.
>
> Mark Hadfield wrote:
>>
>> "David Fanning" <davidf@dfanning.com> wrote in message
>> news:MPG.1349819a77d14acc989aac@news.frii.com...
>>>
>>> And, unless I am mistaken, the clipboard object also does
>>> not support encapsulated PostScript, but rather just PostScript
>>> if the PostScript keyword is set on the Draw method.
>>
>> I think you ARE mistaken, David. The output from the IDLgrClipboard object
>> certainly looks likes EPS to me.
>>
>> ---
>> Mark Hadfield
>> m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
>> National Institute for Water and Atmospheric Research
>> PO Box 14-901, Wellington, New Zealand
>
> --
> rjf.
> Randy Frank | ASCI Visualization
> Lawrence Livermore National Laboratory | rjfrank@llnl.gov
> B451 Room 2039 L-561 | Voice: (925) 423-9399
> Livermore, CA 94550 | Fax: (925) 423-8704
--
Theo Brauers
Institut fuer Atmosphaerische Chemie (ICG-3)
Forschungszentrum Juelich
52425 JUELICH, Germany
Tel. +49-2461-61-6646 Fax. +49-2461-61-5346
http://www.kfa-juelich.de/icg/icg3/MITARBEITER/th.brauers.ht ml
|
|
|