<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=687241508-28092004><STRONG>Hi
All, </STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004><STRONG>
</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004><STRONG>
Please let me know how to zoom the Image without using
vtkRenderWindowInteractor.</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004><STRONG>
I tried one code this is not working .This is the code in which i am reading a
BMP image.</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004><STRONG></STRONG></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004>
char* fname =
"D:\\study1\\study.image1.bmp"; <BR>
vtkBMPReader*
reader=vtkBMPReader::New();<BR>
reader->SetFileName(fname);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004>
vtkImageData
*data=vtkImageData::New();<BR> data
=
reader->GetOutput();<BR>
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004>
vtkImageActor
*actor=vtkImageActor::New();<BR>
actor->SetInput(reader->GetOutput());</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=687241508-28092004><FONT
color=#ff0000></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=687241508-28092004><FONT
color=#ff0000>
vtkCamera *cam=vtkCamera::New();</FONT></DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial color=#ff0000
size=2>
cam->Zoom(0.0);<BR></FONT></SPAN><BR> </DIV>
<DIV></SPAN></FONT><FONT face=Arial size=2><SPAN
class=687241508-28092004> vtkRenderer
*renderer=vtkRenderer::New();<BR>
renderer->AddActor(actor);<BR>
renderer->SetBackground(0.1,0.2,0.4);</SPAN></FONT></DIV>
<DIV> </DIV><FONT><SPAN class=687241508-28092004>
<DIV><BR><FONT face=Arial
size=2>
vtkRenderWindow
*renwin=vtkRenderWindow::New();<BR>
renwin->AddRenderer(renderer);<BR>
renwin->SetSize(300,300);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV></SPAN></FONT><SPAN class=687241508-28092004><FONT face=Arial
size=2> <FONT
color=#ff0000> </FONT></FONT></SPAN><SPAN class=687241508-28092004><FONT
face=Arial
size=2>
</FONT></SPAN></DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial
size=2> <STRONG>and
vtkImage Magnify also i tried like that</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial
size=2> <FONT
color=#ff0000> vtkImageMagnify
*mag=vtkImageMagnify::New();<BR>
mag->SetMagnificationFactors(a);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial color=#ff0000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial size=2>Thanks in
advance</FONT></SPAN></DIV>
<DIV><SPAN class=687241508-28092004><FONT face=Arial
size=2>Ajay.</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=687241508-28092004>
</SPAN></FONT></DIV>
<DIV class=Section1>
<FORM name=form1>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<P class=MsoNormal><SPAN lang=PT-BR
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: PT-BR"><?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> <SPAN
style="FONT-SIZE: 14pt; COLOR: navy; FONT-FAMILY: 'Monotype Corsiva'; mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><SPAN
style="FONT-SIZE: 14pt; COLOR: navy; FONT-FAMILY: 'Monotype Corsiva'; mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN></SPAN><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PlaceType"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PlaceName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType>
<STYLE>st1\:* {
        BEHAVIOR: url(#ieooui)
}
</STYLE>
<STYLE>@font-face {
        font-family: Monotype Corsiva;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</P>
<DIV class=Section1>
<P class=MsoNormal><EM><SPAN
style="FONT-SIZE: 14pt; COLOR: navy; FONT-FAMILY: 'Monotype Corsiva'"><FONT
size=2></FONT></SPAN></EM></P>
<P class=MsoNormal><SPAN><SPAN
style="FONT-SIZE: 14pt; COLOR: navy; FONT-FAMILY: 'Monotype Corsiva'"><SPAN
class=359211004-16092004><FONT face=Arial color=#0000ff size=2><STRONG><EM><FONT
face="Monotype Corsiva"
color=#000080></FONT></EM></STRONG></FONT></SPAN></SPAN></SPAN></P>
<P class=MsoNormal><EM><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy"></SPAN></B></EM></P>
<P class=MsoNormal><EM><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy"></SPAN></B></EM><B
style="mso-bidi-font-weight: normal"><o:p></o:p></B></P>
<P class=MsoNormal><EM><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy"></SPAN></B></EM></P>
<P class=MsoNormal><EM><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy"></SPAN></B></EM><B
style="mso-bidi-font-weight: normal"><o:p></o:p></B></P></DIV></o:p></SPAN></FORM></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000><br><br>Confidentiality Notice <br><br>The information contained in this electronic message and any attachments to this message are intended<br>for the exclusive use of the addressee(s) and may contain confidential or privileged information. If<br>you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately<br>and destroy all copies of this message and any attachments.<br></font></td></tr></table>