[vtkusers] drawing png over vtk

Jean-Baptiste Estival jb.estival at shaktiware.fr
Tue Sep 5 03:36:48 EDT 2006


Hi Tim,

thank you for your answer. In some case, I need to show flash files over 
png (for animations) : I can't use VTK for that.
I find another way : create two dialog with 2 different parents. One is 
used to render VTK in background, the other for the "front panel"
define a region for painting for the front panel from the png (to 
represent transparency). It seems to work but very slow when refreshing 
vtk dialog.
This is now my problem, can I define a region (not rectangular) for 
Win32OpenGLRenderWindow ?

JB

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