[vtkusers] Re: tcl image to vtk

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Jan 23 18:40:58 EST 2008


CLEMENTS, ROBERT wrote:
> Is there an easy way to use an image loaded with tcl in vtk.  What i 
> want to do is load an image in tcl and then use that image in my vtk 
> pipeline.  Is this possible?
> 
> thanks
> 
> rob

No, but you can do the opposite... convert a vtkImageData to a TkPhoto 
block with vtkImageDataToTkPhoto

Have a look at \Examples\GUI\Tcl\OrthogonalPlanesWithTkPhoto.tcl

The code is acutally in vtkTkRenderWidget.cxx - you might be able to add 
some code to do what you want there.

hth

Goodwin




More information about the vtkusers mailing list