Re: Missing value and Image size in Image, Function Graphic [message #87086 is a reply to message #87085] |
Mon, 06 January 2014 21:25   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Gompie writes:
> When I use
> set_plot, 'ps'
> !p.font=0
> device, filename='fig_better.eps', encapsulated=1, /helvetica
>
> I get the following error
> CGIMAGE: An AlphaBackgroundImage is required to create transparent images in PostScript.
>
> Anyideas...
Sure. When you use the MISSING_VALUE and MISSING_COLOR keywords you are
using image transparency. To do transparency, you need two 24-bit
images. You give me one with cgImage and if you are using the graphics
window, I can obtain the other, the background image, from the window.
But, when I am in the PostScript device I have no way of obtaining the
background image, so you have to give it to me with the
AlphaBackgroundImage keyword.
http://www.idlcoyote.com/cg_tips/transimage.php
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|