[vtk-developers] PNG problem
Manole Buican
manole.buican at terrasigna.com
Wed Jul 22 10:47:00 EDT 2015
Hi all,
Code like
void DlgResVis2D::saveTmpPicture(QString &filename)
{
vtkNew<vtkWindowToImageFilter> windowToImageFilter;
vtkWindow* pRenderWindow = (vtkWindow *) m_pView->GetRenderWindow();
windowToImageFilter->SetInput(pRenderWindow);
windowToImageFilter->SetMagnification(1);
windowToImageFilter->SetInputBufferTypeToRGBA();
windowToImageFilter->Update();
vtkSmartPointer <vtkPNGWriter> writer = vtkSmartPointer <vtkPNGWriter>::New();
writer->SetFileName(filename.toAscii());
writer->SetInputConnection(windowToImageFilter->GetOutputPort());
writer->Write();
}
exports a picture in PNG on 5 computers. On the sixth computer produce only a 2KB empty PNG file (no error is prompted), while on each other 5 computers produce 35KB PNG file with the same image.
Does anybody encounter the same behavior?
Thx in advance,
Manole Buican
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150722/39a6fc05/attachment.html>
More information about the vtk-developers
mailing list