<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi all,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>I tried to scale a 2D actor but it doesn't work. I tried 
GetPosition2Coordinate() function but it doesn't work.&nbsp; Also I tried to 
zoom the camera. It does not work either.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Whould you give me some advices? Thanks.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Regards</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Liang Ma</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><STRONG>Here is the code:</STRONG></FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;<SPAN class=t_tag onclick=tagshow(event) 
href="tag.php?name=vtk">vtk</SPAN>Actor2D&nbsp;&nbsp;&nbsp;*pvtkActor;<BR>&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;..........................<BR>&nbsp;this-&gt;pvtkActor-&gt;GetPositionCoordinate()-&gt;SetCoordinateSystemToNormalizedViewport();<BR>&nbsp;this-&gt;pvtkActor-&gt;GetPositionCoordinate()-&gt;SetValue(0.5, 
0.5);&nbsp;&nbsp;//&nbsp;&nbsp;works, could move the actor to the 
center<BR>&nbsp;this-&gt;pvtkActor-&gt;GetPosition2Coordinate()-&gt;SetValue(0.9, 
0.9); //&nbsp;does not work, no effect</DIV>
<DIV>&nbsp;this-&gt;pvtkActor-&gt;GetProperty()-&gt;SetColor(1, 0, 0);</DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><STRONG>the code for zoom:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>////////////////////////////////////////////////////////////////////////<BR>&nbsp; 
&nbsp; &nbsp; &nbsp; this-&gt;pvtkCamera = 
this-&gt;pvtkRenderer-&gt;GetActiveCamera ();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
this-&gt;pvtkCamera-&gt;Zoom(5);&nbsp; &nbsp; //&nbsp; 
&nbsp;&nbsp;&nbsp;zoom&nbsp;doesn't work</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
this-&gt;pvtkRenderer-&gt;SetActiveCamera (this-&gt;pvtkCamera) 
;<BR>///////////////////////////////////////////////////////////////////////////<BR></DIV></BODY></HTML>