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

Sergio Andres sergio at unizar.es
Tue Jul 27 10:21:49 EDT 2004


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 <mailto:sergio at unizar.es>
>     To: Toth Istvan <mailto:istvan at dmmd.net> ; vtkusers
>     <mailto:vtkusers at vtk.org>
>     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
>>>
>>>
>>>
>>>    
>>>
>>
>>
>>
>>  
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040727/88de4ddf/attachment.htm>


More information about the vtkusers mailing list