[vtkusers] How to turn off dithering while rendering?

Wolfram H Volpi whv88240 at Bayou.UH.EDU
Sun Feb 18 15:24:37 EST 2001


I found how to stop the dithering:
On NT, from Controll-Pannel Display-Settings, 
I changed the Color Palette to 16777216 Colors (it was 256).

:-)

On Sun, 18 Feb 2001, Wolfram H Volpi wrote:

> Hello everybody.
> 
> I am rendering a small synthetic model and then saving the image.
> Apparently dithering is corrupting the pixel-colors of the image.  
> But I need to compare two images without dithering.
> Is there a way to turn dithering off?
> 
> Thank you,
> Wolfv.
> 
> # vtk-tcl script.  
> # ren1 is a vtkRenderer containing a synthetic model.
> # Synthetic.vtk and Synthetic.ppm are dithered images of the synthetic
> model.
> 
> vtkRenderWindow renWin
> 	renWin AddRenderer ren1
> 	renWin SetSize 105 105	
> 	renWin Render
> 	renWin SetFileName "Synthetic.ppm"
> 	renWin SaveImageAsPPM
> 
> vtkPNMReader pReader
> 	pReader SetFileName "Synthetic.ppm"
> 
> vtkImageCast imgCast
> 	imgCast SetOutputScalarTypeToUnsignedShort
> 	imgCast SetInput [pReader GetOutput]
> 
> vtkStructuredPointsWriter sWriter
> 	sWriter SetInput [imgCast GetOutput]
> 	sWriter SetFileName "Synthetic.vtk"
> 	sWriter Update
> 
> 
> _______________________________________________
> 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