<div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>Hi, all</div><div> </div><div>
my code is as below,</div><div> </div><div>and the rgb.bmp is a color image.</div><div> </div><div>but the result draws only red channel,,,,</div><div> </div><div>somebody help me plz,,</div>
<div> </div><div> </div><div> </div><div> m_pvtkMapperPolydata = vtkPolyDataMapper::New();<br> m_pvtkMapperPolydata->SetInput(m_pvtkFramePolydata);</div><div> </div><div> vtkBMPReader* pBmp = vtkBMPReader::New();<br> pBmp->SetFileName("d:\\rgb.bmp");<br>

 pBmp->Update();</div><div> </div><div> m_pvtkSliceImgTexture = vtkTexture::New();<br> m_pvtkSliceImgTexture->SetInput(pBmp->GetOutput());<br> m_pvtkSliceImgTexture->InterpolateOn();</div><div> </div><div> m_pvtkActorPolydata = vtkActor::New();<br>

 m_pvtkActorPolydata->SetMapper(m_pvtkMapperPolydata);<br> m_pvtkActorPolydata->SetTexture(m_pvtkSliceImgTexture);<br> m_pvtkActorPolydata->GetProperty()->LightingOff();</div>
</blockquote></div><br>