X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 May 2012 11:29 AM by  anon
Map_Patch Help
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 May 2012 11:29 AM
    Hi, I've been attempting to use Map_Patch to place multiple images onto an 'Orthographic' map projection. Putting one image up is trivial but when the next one is added the entire scene is erased and the new image is placed. I'd like the behavior to be that the new image is 'added' to the scene not simply relpacing the earlier scene. I'm using map_patch (map_set, map_continents, map_grid) in conjunction with the TV routine so all this is direct graphics. TV does not have an 'overlplot' or 'noerase' feature. My image arrays are large (1000x2000 pixels spanning some 12x15 degree). So the question is, Is it possible to do this with direct graphics? If the approach is to use IDL object graphics then is anyone aware of an object oriented form of map_patch? Thanks for any help, Mike

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 May 2012 12:33 PM
    Hi All, With the help of David Fanning's exemplary coyote graphics routines I was able to place multiple images onto a map projection using map_patch, make_transparent_image, and cgImage. David uses the ability of his cgImage.pro wrapper to TV to retain a background image of the current window and then blend the new(next) image with that background. Upon display of this blended image I see all previous images blended. It's a clever way to retain the information of the previous display(s) and use that as background for the new(next) display. The use of his procedure, make_transparent_image.pro makes this possible. This procedure accepts the warped image from map_patch and a color string indicating the color to be considered as transparent. This transparent image is then sent to cgImage.pro and blended with the previous background image. Very clever! Thanks David.
    You are not authorized to post a reply.