Dear all,
How can save a cgBlendImage as 'high quality' eps file?
The following example save a very low-quality eps file
;%%%%%%%%%%%%%%%%%%%
; Create some data.
signal = cgDemoData(1) - 15
time = Findgen(N_Elements(signal)) * 6.0 / N_Elements(signal)
; Draw plot in data window.
cgPlot, time, signal, COLOR='navy', /NODATA, XTitle='Time', YTitle='Signal'
cgPlot, time, signal, THICK=2, COLOR='cornflower blue', /Overplot
cgPlot, time, signal, PSYM=2, COLOR='olive', /Overplot
background = cgSnapShot()
; produce shadow
cgColorFill, [ 0, 6, 6, 0, 0],[-5, -5, 5, 5, -5], /DATA, COLOR='blue'
foreground = cgSnapshot()
; Save
myDevice = !D.NAME
set_plot,'ps'
Device, Filename ='rgb.eps',/Color,/encapsulate,font_size=9,XSIZE=16,YSIZE=14
cgBlendImage, foreground, background, ALPHA=0.4
device,/close
SET_PLOT, myDevice
;%%%%%%%%%%%%%%%%%%%
Thanks,
Amin
|