Your display is configured to use 16 bit color (65 thousand colors). Surface selection assumes 24 bit color (16 million colors) where the code determines what cell/point is under each pixel.<div><br></div><div>Google search for color depth for your OS to determine how to increase and it will start working.<br>
<div><div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">2011/6/6 455535440 <span dir="ltr"><<a href="mailto:455535440@qq.com">455535440@qq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hello everybody~~<br>today I try the example :TestAreaSelections.cxx<br>here is a part of code in this file<br>renWin->Render();<br>
  int rgba[4];<br>
  renWin->GetColorBufferSizes(rgba);<br>
  if (rgba[0] < 8 || rgba[1] < 8 || rgba[2] < 8)<br>
  {<br>
  cout <<"Color buffer depth must be atleast 8 bit. Currently: " <br>
    << rgba[0] << ", " << rgba[1] << ", " << rgba[2] << endl;<br>
  return 0;<br>
  }<br><br>when my programe run at this i got the rgba[0] ,rgba[1] , rgba[2] value 5,6,5,and it retrun wieh 0<br>the message is "Color buffer depth must be atleast 8 bit. Currently,"what did this mean?<br>i use the image data that suporrted in vtkdata, I don't know what the problem is,can any one give me help? thx~~ <br>
<br><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>