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

Home » Public Forums » archive » Re: PRINTER device, TV, and image position
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PRINTER device, TV, and image position [message #28186 is a reply to message #28185] Tue, 27 November 2001 07:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ray Muzic (muzic@uhrad.com) writes:

> Is it just me or does 'PRINTER' device ignore (x,y)
> position specified in the TV command?
> : TV, Image [, X, Y [, Channel]]
>
> I am trying to put three images next to each other on a page.
> Of course I could make a single array with the composite
> image but that seems unnecessary as the 'PS' device honored
> the "x,y,/centimeters", arguments specified in TV.
> It seems to be more than the 'PRINTER' device just ignoring
> /centimerers since I tried x position of 600 (dots) on a
> 600 dpi printer and the image position was not altered.

Lot's of things don't work right in the PRINTER device. :-)

I'd do something like this to get three images centered
on a landscape page of output:

thisDevice = !D.Name
keywords = PSWindow(/Printer, /Landscape, Fudge=0.25)
Set_Plot, 'PRINTER'
Device, Landscape = keywords.landscape
Device, _Extra=keywords
!P.Multi=[0,3,1]
TVImage, image1, /Keep_Aspect
TVImage, image2, /Keep_Aspect
TVImage, image3, /Keep_Aspect
!P.Multi = 0
Set_Plot, thisDevice

You can learn more about how the PRINTER device works
from this article:

http://www.dfanning.com/tips/sendtoprinter.html

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Global chaos (was: Re: can i place a job advert)
Next Topic: Translate simple syntax from Matlab into IDL

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

Current Time: Fri Oct 10 06:36:47 PDT 2025

Total time taken to generate the page: 0.16160 seconds