<DIV>Hallo,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I blend two images using vtkImageBlend, namely image A and B. <BR>Before I blend those images, each of them is padded using vtkImageConstantPad.<BR>I have a slider to set the opacity value (range: 0-1). <BR>As the slider move, I get the position and use it to set the opacity.<BR>Opacity of image A = slider position.<BR>Opacity of image B = 1 - slider position.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Everything looks perfect if both images are overlapped. Images could be fadded out<BR>as I move the slider.</DIV>
<DIV>&nbsp;</DIV>
<DIV>And then, I move or rotate image B until some part of image A are not covered<BR>by image B anymore, but covered only by the constantpad of image B.<BR>My question is: How to set opacity of vtkImageConstantPad? <BR>My problem is: Only the parts of image A which are covered by image B can be faded out. It looks like the opacity value of parts of image A which are covered by constantPad of image B is always 1, until the slider hit value 0, image A is missing.<BR>I want to have a result that all parts of image A could be faded out even it is covered only<BR>by the constantPad of image B.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please help me to solve this problem. Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>br,<BR>.Margaretha.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
All your favorites on one personal page – <a href="http://my.yahoo.com">Try My Yahoo!</a>