[vtkusers] How to set the resolution when I save vtkRenderWindow to jpeg?

Helend zheng.bangyou at yahoo.com.cn
Mon Apr 20 07:50:19 EDT 2009


Thank you very much!

but your method can not set the size of vtkRenderWindow was bigger than the
screen size.

I use the class vtkRenderLargeImage can solve my problem.

This is the sample Tcl link and codes:
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/Rendering/Tcl/RenderLargeImage.tcl?root=VTK&content-type=text/plain

vtkRenderLargeImage renderLarge
renderLarge SetInput ren
renderLarge SetMagnification 4

vtkTIFFWriter writer
writer SetInputConnection [renderLarge GetOutputPort]
writer SetFileName largeImage.tif
writer Write




Kevin H. Hobbs-2 wrote:
> 
> Helend wrote:
>> But how to set the resolution of this image?
>>   
> 
> 
> Try :
> 
> 	renWin->SetSize( 1024, 1024 );
> 
> 
> 
> 
>  
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-the-resolution-when-I-save-vtkRenderWindow-to-jpeg--tp23112834p23135188.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list