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();