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 #28184 is a reply to message #28179] Tue, 27 November 2001 07:15 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Ray Muzic wrote:
> 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.
>
> Comments?
> Workarounds?

I'd use a program such as IMDISP:

http://www.gumley.com/PIP/Free_Software.html

that allows the image position to be specified by a POSITION vector or
the system variable !P.MULTI, e.g.,

entry_device = !d.name
set_plot, 'PRINTER'
!p.multi = [0, 3, 1, 0, 0]
imdisp, dist(256)
imdisp, dist(256)
imdisp, dist(256)
device, /close_document
set_plot, entry_device

IMDISP has other advantages as well:

- Supports WIN, MAC, X, CGM, PCL, PRINTER, PS, and Z graphics devices,
- Image is automatically byte-scaled (can be disabled),
- Custom byte-scaling of Pseudo color images via the RANGE keyword,
- Pseudo (indexed) color and True color images are handled
automatically,
- 8-bit and 24-bit graphics devices are handled automatically,
- Decomposed color settings are handled automatically,
- Image is automatically sized to fit the display (can be disabled),
- Color table splitting via the BOTTOM and NCOLORS keywords,
- Image aspect ratio customization via the ASPECT keyword,
- Resized images can be resampled (default) or interpolated,
- Top down image display via the ORDER keyword (!ORDER is ignored),
- Selectable display channel (R/G/B) via the CHANNEL keyword,
- Background can be set to a specified color via the BACKGROUND keyword,
- Screen can be erased prior to image display via the ERASE keyword,
- Plot axes can be drawn on the image via the AXIS keyword,
- Photographic negative images can be displayed via the NEGATIVE
keyword.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[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:16:31 PDT 2025

Total time taken to generate the page: 0.39694 seconds