Displays or prints images at the current or specified size and device resolution.
TVSIZE, image [, position]
x, y
channel
position
Centimeters
Channel
Data
Device
Inches
Normal
Order
Resize_Device
Top
Screen_Dpi
XSize
YSize
Z
It is usually the case that the resolution of an output device, such as a laser printer, does not match the resolution of your computer screen. Because of this difference in resolution, you may notice that printed images look smaller than images that appear on your screen. TVSIZE detects these differences in display resolution and automatically adjusts the size of the image, if necessary.
By default, a screen resolution of 100 dots per inch (dpi) is assumed for your system. (If you wish, you can specify your screen resolution precisely using the Screen_Dpi keyword.) The screen dpi is compared to the value of the system variables !D.X_Px_Cm and !D.Y_Px_Cm. (These system variables hold the (x, y) resolution in number of pixels per centimeter for the currently active output device.) If there is a difference of greater than 20% between the screen resolution and the output device resolution, TVSIZE resizes the image accordingly. If the output device does not have scalable pixels, the CONGRID routine is used to expand the number of pixels to match the given size. If the device supports scalable pixels it simply receives the requested image size.
If you have annotated an image with text or lines or other graphics objects, you may notice that the printed output does not appear the way it appears on your screen. Specifically, the annotations may appear to be moved away from the image. If this is the case, use the Resize_Device keyword. This keyword explicitly resizes the output device to match the image size, resulting in output that closely matches the graphics as they appear on your screen.
TIP: TVSIZE assumes that your screen resolution is 100 dots per inch (dpi). To improve the ability of TVSIZE to estimate the size of the image on the screen and correctly size the image for printing, do the following:
scr_dpi = [!D.X_Px_Cm,!D.Y_Px_Cm]*2.54
TVSIZE, image, x, y, Screen_Dpi=scr_dpi
NOTE: The system variables !D.X_Px_Cm and !D.Y_Px_Cm may not exactly reflect the resolution of the screen. These values are reported to PV-WAVE and cannot be verified.
TVSIZE, image, 0, 0
TVSIZE, image, 0, 0, XSize=5, YSize=7, /Inches