[vtkusers] How to get a render window size?

Shriram Iyer shriram.uc at gmail.com
Tue Nov 6 00:01:54 EST 2007


int *size = renWin->GetSize();
width = size[0];
height = size[1];

Shriram

On 11/5/07, James Zhou <henryjoye at gmail.com> wrote:
>
> Hi all,
>
> I need to get the current render window size: height and width. Could you
> tell me how to get it?
>
> Thanks!
>
> James
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071105/873f8c55/attachment.htm>


More information about the vtkusers mailing list