[vtkusers] OffScreenRendering and GetMemoryDC
Jean-Baptiste Estival
jb.estival at shaktiware.fr
Tue Sep 5 10:31:10 EDT 2006
Hi all,
I have some problem to make work VTK under another non-rectangular
dialog with transparency.
My idea is to use offscreen rendering for VTK part, and use simple
BitBlt and GetMemoryDC to deal with the transparency.
But, BitBlt always draw a blank screen.
On WM_PAINT message, I do :
StretchBlt( dc.GetSafeHdc(), 0, 0, 1280, 1024,
m_pRenderWindow->GetMemoryDC(), 0,0, 1280, 1024,
SRCCOPY);
When I want to render :
m_pRenderWindow->Render();
RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW);
Any idea ?
thanks a lot
best regards,
JB
More information about the vtkusers
mailing list