comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Is there a worthy printing utility
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Is there a worthy printing utility [message #11100] Fri, 13 March 1998 00:00
Richard D. Hunt is currently offline  Richard D. Hunt
Messages: 8
Registered: January 1996
Junior Member
Does anyone have printing utility that will work under IDL for MS
windows and UNIX? I am trying to print something as simple as an
8-bit graphics image and I have played with Dialog_Printer* but
they are too limiting and don't work well with object or direct
graphics.

I have trid this problem two ways. First I grabbed the image
(which is 100x500 pixels and is from a direct graphics window),
created an image object and dumped it using an object printer.
This works okay except on both OSs except the printfile is on the
order of 11-28MB and depending on how many colors your window manager
is set up for IDL will scale the colors of you image as it feels
necessary. This does have the advantage that I can center and
scale the image easily on the printer but you can't tell if the
user is printing a protrait or landscape view and on MS windows
the display must be set for 8-bit graphics or the colors get all
screwed up. Second I tried using the PRINTER device but it is not
trivial (or maybe even impossible) to scale and center the image
on the page and here again you can't tell what the user has selected
for options in Dialog_Printer*. I think the direct graphics printer
would be better from the standpoint that it won't try to change
color palettes as the object graphics does but again there is no real
control over the device as far as setting up and placing the image on a
page. All I want to do is be able to find out if the user selects
portrait or landscape and set the xsize, ysize, xoffset, and yoffset
features. If I am missing something on this any advice would be
appreciated.

So, I guess I have to go back to using the PS and PCL devices
to try to handle this. Has anyone else tackled this issue.
I am using IDL 5.1 beta 2 and trying to print to an HP Color
Laserjet 4/5 that supports PCL and PS.

--

Richard D. Hunt
_/_/_/ _/ _/ _/ SANDIA NATIONAL LABORATORIES _/_/_/
_/ _/_/ _/ _/ P.O. Box 5800 M/S 0965 _/_/
_/_/_/ _/ _/ _/ _/ Albuquerque, NM 87185-0965 _/_/_/_/_/_/
/ _/ _/_/ _/ Voice: (505)844-3193 _/ _/_/ _/
_/_/_/ _/ _/ _/_/_/_/ Fax: (505)844-5993 _/ _/_/ _/
E-Mail: rdhunt@sandia.gov _/_/_/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Histogram function
Next Topic: Histogram function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon Oct 13 13:35:06 PDT 2025

Total time taken to generate the page: 1.84298 seconds