IDL color palette and tvrd [message #1635] |
Fri, 07 January 1994 12:26 |
fisher
Messages: 3 Registered: January 1994
|
Junior Member |
|
|
Friday, January 7, 1994
I am running IDL for the Macintosh V3.5.1 and am having trouble getting
tvrd to work correctly. Let me briefly explain exactly what I am doing.
I have a radar image that is in cartesian format (384x384 bytes).
I want to overlay this image on a canvas (a 640x480 image) and then
annotate it with text. However, simply placing the text on the image does
not update the canvas array and hence I am trying load the current window
into a new array and then display. Only problem is is that the colors come
out wrong. It seems that maybe tv is somehow scaling the data into the new
array this ruining my indexed color image.
.
.
.
tvlct,r,g,b ; r,g,b already read in from a file
radar_img(0:383,0:383)
canvas (10:393,86:480) = radar_img
tv,canvas
xyouts,400,100,"This is text"
tvrd(),canvas2
tv,canvas2
.
.
end
Any help will be greatly appreciated.
Dave
wolff@echo.gsfc.nasa.gov
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
+ David B. Wolff NASA/Goddard Space Flight Center +
+ Pho: (301) 286-2120 TRMM Office, Code 910.1 +
+ FaX: (301) 286-1626 Greenbelt, Maryland 20771 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
+ wolff@echo.gsfc.nasa.gov +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
|
|
|