Here is the routine for storing an IDL Graphics Window as a True Color RGB JPEG:
; Make some colorful dummy data
device, DECOMPOSED=0 ; I only needed this to make the colorful image
image = dist(360)
loadct, 5
window, XSIZE=360, YSIZE=360
tv, image
; Here is the coding solution you are looking for, Tavo:
snapshot = tvrd(TRUE=1) ; I would get grayscale, if I did not use TRUE=...
write_jpeg, 'my_idl_graphic.jpg', snapshot, TRUE=1
James Jones
|