[Paraview-developers] render window size

Li Guan li.9uan at gmail.com
Tue Apr 10 14:56:15 EDT 2012


Hi all,

After I set new RenderWindow size in python script SetSize(640,480), and
GetSize(), the actual size is not 640,480.
I just want to make sure the 640-by-480 Z-buffer I read should be at the
right starting location.

Here are the piece of code segment. Anything thought? Many thanks!

input to python shell
---------------------------------------------
RenWin = GetRenderView().GetRenderWindow();
new_size = (640,480);
RenWin.SetSize(new_size);
actual_size = RenWin.GetSize();
---------------------------------------------

output
---------------------------------------------
>>> new_size

(640, 480)

>>> actual_size

(648, 507)
---------------------------------------------

Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120410/4d45f0ae/attachment.htm>


More information about the Paraview-developers mailing list