[vtkusers] Please help me: How get pixel data after Render()
Renaud Isabelle
renauisa at yahoo.fr
Wed Jun 8 12:05:33 EDT 2005
I'm got really crazy. I don't manage to use double buffering in order to avoid flickering on screen.
I'm using ImageSliceViewer to render a 2D slice of my 3D image on screen. It works well without double buffering except for flickering on screen.
I have already use double buffering in MFC and I have a class CMemDC that works fine to use memory buffering.
-> All I need is a method to get the pixel data of my 2D slice displayed on screen.Then I can use it to create a DIB Bitmap from what is rendered off screen.
I found the example of rendering in MFC and I tried the series of instructions:
this->window->SetupMemoryRendering(x,y,hdc);
this->window->Render();
StretchBlt(dc,0,0,x,y,memDC,0,0,x,y,SRCCOPY);
this->window->ResumeScreenRendering();
but all is displayed is a white page. Especially because during process, unsigned char* MemoryData should be NULL.
Please help me.
---------------------------------
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos !
Créez votre Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050608/be0cc318/attachment.htm>
More information about the vtkusers
mailing list