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

Home » Public Forums » archive » Transparent series of images with axis using cgImage
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Transparent series of images with axis using cgImage [message #88115] Fri, 21 March 2014 06:01 Go to previous message
Petros Syntelis is currently offline  Petros Syntelis
Messages: 32
Registered: June 2013
Member
Hi everybody,

I am trying create three images with axis in a row, and overplot above them a transparent image.
I have a code like this that works fine in the 'X' window case


cgimage, im1 , xr=[..],yr=[..],/axis, /keep ,pos=pos
loadct,3
cgimage, im2 , xr=[..],yr=[..],/axis, /axis, transparent=transparent, /over,pos=pos
...
and is followed by two other similar sets of plots with different position vectors.

When i want to print this to ps. according to the instructions here
https://www.idlcoyote.com/ip_tips/transparentpng.php
, I have to provide a background image.

Now, if i do the trick described in the documentation, and write the code as

cgDisplay, /Pixmap
cgimage, im1 , xr=[..],yr=[..],/axis, /keep ,pos=pos
bgimage1 = cgSnapshot()
WDelete
...

for all three cases, and pass the bgimages to AlphaBackgroundImage, like

cgps_open ...
cgimage, im1 , xr=[..],yr=[..],/axis, /keep ,pos=pos
loadct,3
cgimage, im2 , xr=[..],yr=[..],/axis, /axis, transparent=transparent, /over,pos=pos, AlphaBackgroundImage=bgimage1
...
cgps_close


I have the following problems:
a) The background images does not match the size of the transparent images in the ps file.
b) The characters in the axis are different
which both of them arise i think from the fact that the window size does not match the ps window file.

Has anybody tried to create transparent images with axis and done it correctly?

Regards,
Petros
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to convert a segmented image to _polygons_ and save it in a single ROI or .evf file?
Next Topic: Killing Widget Objects

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

Current Time: Wed Oct 08 13:59:17 PDT 2025

Total time taken to generate the page: 0.00429 seconds