comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » save cgBlendImage as eps?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
save cgBlendImage as eps? [message #94343] Sat, 15 April 2017 04:56
amin farhang is currently offline  amin farhang
Messages: 39
Registered: November 2010
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newcomer to IDL
Next Topic: Taylor Diagram

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:17:14 PDT 2025

Total time taken to generate the page: 0.01139 seconds