Re: Transparent Overlay [message #82064] |
Fri, 16 November 2012 08:10 |
moadeep
Messages: 2 Registered: November 2012
|
Junior Member |
|
|
Hi David, your solution worked a treat (again). Thanks
On Friday, 16 November 2012 13:21:13 UTC, David Fanning wrote:
> j.robinson.10@aberdeen.ac.uk writes:
>
>
>
>> I am using IDL 6.4 and would like to overlay a subtraction image with a red colorscale (CTIndex = 3) over a grayscale image. I have tried using David Fannings cgImage and cgTransparentImage but this does not work and I receive the message -- alpha blending requires IDL 6.5 or newer versions.
>
>>
>
>> Is there an alternative approach I can use
>
>
>
> That restriction is because the Z-graphics buffer was still
>
> an 8-bit only buffer in IDL 6.4, and I needed its 24-bit
>
> abilities to do alpha blending. But, I can probably
>
> do the same thing in a pixmap. Try this version of
>
> cgImage and let me know. I don't have these old versions
>
> of IDL still available for testing.
>
>
>
> http://www.idlcoyote.com/misc/cgimage.pro
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Transparent Overlay [message #82067 is a reply to message #82064] |
Fri, 16 November 2012 05:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
j.robinson.10@aberdeen.ac.uk writes:
> I am using IDL 6.4 and would like to overlay a subtraction image with a red colorscale (CTIndex = 3) over a grayscale image. I have tried using David Fannings cgImage and cgTransparentImage but this does not work and I receive the message -- alpha blending requires IDL 6.5 or newer versions.
>
> Is there an alternative approach I can use
That restriction is because the Z-graphics buffer was still
an 8-bit only buffer in IDL 6.4, and I needed its 24-bit
abilities to do alpha blending. But, I can probably
do the same thing in a pixmap. Try this version of
cgImage and let me know. I don't have these old versions
of IDL still available for testing.
http://www.idlcoyote.com/misc/cgimage.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|