<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#cae2b4>
<DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>can somebody tell me how to&nbsp;&nbsp;make the 
exterior of an image transparent? I need only the "middle".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan Matis</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Below&nbsp;is my code: -I tried to map an image on 
a plane as a texture.&nbsp;It will generate an error, that it couldn't find any 
scalar! What is that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; vtkPlaneSource * 
tPlaneSource=vtkPlaneSource::New();</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;vtkThresholdTextureCoords * 
thresh=vtkThresholdTextureCoords::New();<BR>&nbsp;&nbsp;thresh-&gt;SetInput((vtkDataSet 
*)tPlaneSource-&gt;GetOutput());<BR>&nbsp;&nbsp;thresh-&gt;ThresholdByUpper(0.5);<BR>&nbsp;&nbsp;vtkDataSetMapper 
*tDataSetMapper_Plane=vtkDataSetMapper::New();<BR>&nbsp;&nbsp;tDataSetMapper_Plane-&gt;SetInput(thresh-&gt;GetOutput());<BR>&nbsp;&nbsp;vtkPolyData 
*temp=tPlaneSource-&gt;GetOutput();<BR>&nbsp;&nbsp;tDataSetMapper_Plane-&gt;SetScalarRange(temp-&gt;GetScalarRange());&nbsp;<BR>&nbsp;&nbsp;anActor_Reslice-&gt;SetMapper(tDataSetMapper_Plane);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;vtkTexture 

tTexture=vtkTexture::New();<BR>&nbsp;&nbsp;tTexture-&gt;SetInput(anImageReslice-&gt; 
GetOutput());<BR>&nbsp;&nbsp;tTexture-&gt;InterpolateOn();</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;anActor_Reslice-&gt;SetTexture(tTexture);&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; //nothing will happen, image will be "black", error will be 
generated<BR></DIV></FONT></BODY></HTML>