vtkWindowToImageFilter * wif = vtkWindowToImageFilter::New();

vtkBMPWriter *bmpw = vtkBMPWriter::New();

wif->SetInput(m_pRenderer->GetVTKWindow());

bmpw->SetInputConnection(wif->GetOutputPort());

bmpw->SetFileName(strFileName.GetBuffer());

bmpw->SetFilePattern("bmp");

bmpw->Write();

05-11 13:51