[vtkusers] Render Image Resize With Widget Container

Brady McCary brady.mccary+ITK at gmail.com
Thu Jan 22 19:36:22 EST 2009


vtkusers,

I have a (2D) PNG image that I want to render in a (Qt) GUI widget.
The image is 100x100 pixels and the widget is resizeable. I would like
the image to scale according the size of the widget that contains it.
This will require two components:

1. A way to connect the widget resize event to a VTK event handler. I
am comfortable with this step.
2. A way to render the image to an arbitrary scale, say 400x300. I do
not know how to accomplish this part.

I have asked google and even searched the vtkusers archives, but I
cannot find what I am looking for. Please respond with a link or a
list of keywords I should search for.

Thanks,

Brady



More information about the vtkusers mailing list