[vtkusers] CHANGE SIZE OF IMAGE

Wolfram H Volpi whv88240 at Bayou.UH.EDU
Tue Sep 12 20:41:22 EDT 2000


Please help me find a way to change the size of an image in vtk/tcl/tk.
This is what I have tried so far in:

vtkTkRenderWidget .top.f1.f2.f1.f1.ren -width 256 -height 256
    BindTkRenderWidget .top.f1.f2.f1.f1.ren

set renWin1 [.top.f1.f2.f1.f1.ren GetRenderWindow]
vtkRenderer ren1
$renWin1 AddRenderer ren1

$renWin1 SetSize 256 256

radiobutton $ww.slice.rbM -text "Maximize"  -command
	{
#error in tcl script: invalid command name "Tk_ResizeWindow(vtkTemp0,"
	# Tk_ResizeWindow($renWin1, 512, 512)

#error in tcl script: invalid command name "Tk_ResizeWindow(renWin1,"
	# Tk_ResizeWindow(renWin1, 512, 512)

#error in tcl script: invalid command name "Tk_ResizeWindow(ren1,"
	# Tk_ResizeWindow(ren1, 512, 512)

#error in tcl script: invalid command name"Tk_ResizeWindow(.top.f1.f2.f1.f1,"
	# Tk_ResizeWindow(.top.f1.f2.f1.f1, 512, 512)

#does not change size
	# $renWin1 SetSize 512 512

#does not change size
	#  .top.f1.f2.f1.f1 config -width 512 -height 512

#does not change size
	#.top.f1.f2.f1.f1  configure -width 512 -height 512

	  $renWin1 Render }
 

Thank you in advance,
Wolfram H Volpi.





More information about the vtkusers mailing list