Are you displaying the image before you save it? If you are, you should consider using the Z-buffer device to generate generate and save the image without displaying it. An example how to use the Z device is shown below:
pro dj_z_test
Set_PLOT, 'Z'
Device, SET_RESOLUTION=[500,500], DECOMPOSED=1, SET_PIXEL_DEPTH=24
plot, findgen(10)
t = tvrd(/TRUE)
WRITE_JPEG, "test_new.png", t, /TRUE
set_plot, 'win'
end
|