[vtkusers] How to draw an image with fixed size??

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Tue Jul 27 10:26:28 EDT 2004


Hi Segio,

Did you try renWin->SetSize(64, 64) ?

It works for me in ParaView.

-- Julien



-----Message d'origine-----
De : Sergio Andres [mailto:sergio at unizar.es]
Envoyé : mardi 27 juillet 2004 16:22
À : Toth Istvan; vtkusers
Objet : Re: [vtkusers] How to draw an image with fixed size??


Thanks but, you sent me 4 vtk files with polydata dataobjects and 1 .exe.

My problem is that I cannot draw a 2D image (vtkImageData object) in a
vtkRenderWindow
with a given window size (i.e.: 64x64 pixels)

Sergio.


Toth Istvan escribió:

vtkImageData object is for bmp,jpg an so an...
Take a look to this example..I attached it..to you

----- Original Message ----- 
From: Sergio Andres 
To: Toth Istvan ; vtkusers 
Sent: Tuesday, July 27, 2004 6:52 AM
Subject: Re: [vtkusers] How to draw an image with fixed size??


a vtkImageData object

Toth Istvan escribió:

What kind of vtk is it??Polydata PointStruct Grid...??

----- Original Message ----- 
From: "Sergio Andres" <sergio at unizar.es>
To: <vtkusers at vtk.org>
Sent: Tuesday, July 27, 2004 4:52 AM
Subject: [vtkusers] How to draw an image with fixed size??


  
Hi all,

I would like to draw a vkt Image in a vtkRenderWindow with a give size
(for instance, 64x64).
I have been working with vtkImageViewer, which renders a given image.
But I do not know
how to draw the given image (whole image) when the size of
vtkImageViewer (vtkRenderWindow)
is lower than the image size.

My purpose is to draw any image in a 64 x 64 window.

Does anyone know how to do it?

Thanks !!
Sergio

_______________________________________________
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://www.vtk.org/mailman/listinfo/vtkusers



    



  



More information about the vtkusers mailing list