[vtkusers] drawing png over vtk

Jean-Baptiste Estival jb.estival at shaktiware.fr
Tue Sep 5 06:17:12 EDT 2006


Hi all,

I found a solution : playing with SetWindowRgn() for each window (png 
window and vtk window) but when the VTK window region is not rectangular
render process is very slow. Does somebody have an idea ?


best regards,


Tim Thornton a écrit :
> Hi,
> I'm not sure if that will work, but what we have done to do something
> similar is add the PNG file into vtk, so vtk renders both pictures. Vtk
> supports the standard vtk transparency, and if you want to you can also
> change the transparency of the image so that the underlying vtk graphics can
> be seen.
> The only drawback we have found is that the PNG routines are quite slow, at
> least relative to JPEG, in VTK, so if you want an aniomation of a sequence
> of PNG images this doesn't work too well.
> Tim
>
> -----Original Message-----
> From: vtkusers-bounces+tt=smartcomsoftware.com at vtk.org
> [mailto:vtkusers-bounces+tt=smartcomsoftware.com at vtk.org] On Behalf Of
> Jean-Baptiste Estival
> Sent: 04 September 2006 16:23
> To: vtkusers at vtk.org
> Subject: [vtkusers] drawing png over vtk
>
> Hello everybody,
>
> I have an app I developped under win32. This is a dialog drawing 
> graphics pictures (CWnd A) (using windows GDI) on the top, and vtk below 
> (CWnd B).
> Now, A will have common region with B. Parts of this region will be 
> transparent to show B.
> Is it possible or not ?
>
> Thanks
>
> Best regards.
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>   



More information about the vtkusers mailing list