[vtkusers] Importing images drawn into a memory based device context (DC) into VTK

Pedram Rezaei pr at marinecomputing.com
Thu May 6 05:26:32 EDT 2004


Dear All,

I have a very powerful cartography library which draws some specific
maps into memory by creating a memory device context (DC). Is there
anyway that I could draw this image as the background to a VTK rendered?


What I really want to do is to have a background map of the work (drawn
by my cartography library) as the background to images drawn by VTK such
as temperature bars or wind vectors.

Possibilities that I could think of are as follow:

1- Draw the maps (using our cartography library) onto the Window and
then draw the VTK renderer over the top. Doing this I would need to get
the VTK renderer to be transparent (or have a transparent colour key).

2- Import the background map as an image into the VTK pipeline. (How can
I do this if the image is drawn into memory which I only have a device
context (DC) pointer to?)

Thank you in advance for your comments.


Pedram




More information about the vtkusers mailing list