[vtkusers] Screenshots

Pan, Tony C (Research) tpan at crd.ge.com
Wed Jun 5 12:38:56 EDT 2002


JPEG uses lossy compression, so quality degradation should be expected.  You can try one of the other
image formats, like BMP, PNM, or TIFF.  PNG format is lossy, but it might give you better quality
than JPEG.

Tony

-----Original Message-----
From: Gregory Bleiker [mailto:gregory.bleiker at phonak.ch]
Sent: Wednesday, June 05, 2002 12:11 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Screenshots


Hi all
I'm using 

	vtkWindowToImageFilter* l_w2if= vtkWindowToImageFilter::New();
	l_w2if->SetInput(RenderWindow);
	
	vtkJPEGWriter* l_wr= vtkJPEGWriter::New();
	l_wr->SetInput(l_w2if->GetOutput());
         l_wr->SetQuality(100);
	l_wr->SetFileName("screenshot.jpg");
	l_wr->Write();

to do screenshots. However, the quality is not as good as the image rendered on the screen. Any help
or ideas would be highly appreciated.

Gregi

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list