The TV procedure displays images on the image display without scaling the intensity. To display an image with scaling, use the TVSCL procedure.
NOTE: To display a true-color image (an image with 16, 24, or 32 bits per pixel) you must specify the TRUE keyword.
While the TV procedure does not scale the intensity of an image, it does convert the input image data to byte type. Values outside the range [0,255] are "wrapped" during the conversion. In addition, for displays with less than 256 colors, elements of the input image with values between !D.TABLE_SIZE and 255 will be displayed using the color index !D.TABLE_SIZE-1.
A vector or two-dimensional array to be displayed as an image. If this argument is not already of byte type, it is converted prior to use.
If X and Y are present, they specify the lower-left coordinate of the displayed image, relative to the lower-left corner of the screen.
An integer specifying the position for Image within the graphics window. Image positions run from the top left of the screen to the bottom right. If a position number is used instead of X and Y , the position of the image is calculated from the dimensions of the image as follows (integer arithmetic is used):
For example, when displaying 128 by 128 images on a 512 by 512 display, the position numbers run from 0 to 15 as follows:
Note, when using a device with scalable pixels (e.g., PostScript), the XSIZE and YSIZE keywords should also be used.
The memory channel to be written. It is assumed to be zero if not specified. This parameter is ignored on display systems that have only one memory channel. When using a "decomposed" display system, the red channel is 1, the green channel is 2, and the blue channel is 3. Channel 0 indicates all channels.
Set this keyword to indicate that the X , Y , Xsize , Ysize , and Z arguments are given in centimeters from the origin. This system is useful when dealing with devices, such as PostScript printers, that do not provide a direct relationship between image pixels and the size of the resulting image.
The memory channel to be written to . The CHANNEL keyword is identical to the optional Channel argument.
Set this keyword to indicate that all position and size values are given in inches from the origin. This system is useful when dealing with devices, such as PostScript printers, that do not provide a direct relationship between image pixels and the size of the resulting image.
If specified, ORDER overrides the current setting of the !ORDER system variable for the current image only. If set, the image is drawn from the top down instead of the normal bottom up.
Set this keyword to a nonzero value to indicate that a true-color (16-, 24-, or 32-bit) image is to be displayed. The value assigned to TRUE specifies the index of the dimension over which color is interleaved. The image parameter must have three dimensions, one of which must be equal to three. For example, set TRUE to 1 to display an image that is pixel interleaved and has dimensions of (3, m, n ). Specify 2 for row-interleaved images, of size ( m , 3, n ), and 3 for band-interleaved images of the form ( m , n , 3).
See True-Color Images for an example using this keyword to write 24-bit images to the PostScript device.
Set this keyword to indicate that words (short integers) instead of 8-bit bytes are to be transferred to the device. This keyword is valid only when using devices that can transfer 16-bit pixels. The normal transfer uses 8-bit pixels. If this keyword is set, the Image parameter is converted to short integer type, if necessary, and then written to the display.
The width of the resulting image. On devices with scalable pixel size (such as PostScript), if XSIZE is specified the image will be scaled to fit the specified width. If neither XSIZE nor YSIZE is specified, the image will be scaled to fill the plotting area, while preserving the image's aspect ratio. This keyword is ignored by pixel-based devices that are unable to change the size of their pixels.
The height of the resulting image. On devices with scalable pixel size (such as PostScript), if YSIZE is specified the image will be scaled to fit the specified height. If neither XSIZE nor YSIZE is specified, the image will be scaled to fill the plotting area, while preserving the image's aspect ratio. This keyword is ignored by pixel-based devices that are unable to change the size of their pixels.
See , Graphics Keywords , for the description of graphics and plotting keywords not listed above. CHANNEL
D = BYTSCL(DIST(256)) & TV, D ; Create and display a simple image.
Use the position parameter to display a number of images in the same window.
TV, D, 0 ; Display the image in the upper left corner.
TV, D, 1 ; Display another copy of the image in the next position.
ERASE , SLIDE_IMAGE , TVRD , TVSCL , WIDGET_DRAW , WINDOW