<div style="font-family:Verdana;font-size:14px;color:#000;"><DIV>I&nbsp;got&nbsp;it&nbsp;&nbsp;&nbsp;thank&nbsp;you&nbsp;~~~~~</DIV><div style="font:Verdana normal 14px;color:#000;padding:8px 0px;"><div>&nbsp;</div><div>&nbsp;</div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;原始邮件&nbsp;------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "David E DeMarle"<dave.demarle@kitware.com>; </div><div><b>发送时间:</b> 2011年6月7日(星期二) 凌晨0:48</div><div><b>收件人:</b> "455535440"<455535440@qq.com>; </div><div><b >抄送:</b> "vtkusers"<vtkusers@vtk.org>; </div><div><b>主题:</b> Re: [vtkusers] a problem when run TestAreaSelections.cxx</div></div><div>&nbsp;</div>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&amp;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">&lt;<a target="_blank" href="mailto:455535440@qq.com">455535440@qq.com</a>&gt;</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-&gt;Render();<br>
&nbsp;&nbsp;int rgba[4];<br>
&nbsp;&nbsp;renWin-&gt;GetColorBufferSizes(rgba);<br>
&nbsp;&nbsp;if (rgba[0] &lt; 8 || rgba[1] &lt; 8 || rgba[2] &lt; 8)<br>
&nbsp; &nbsp; {<br>
&nbsp; &nbsp; cout &lt;&lt;"Color buffer depth must be atleast 8 bit. Currently: " <br>
&nbsp; &nbsp;&nbsp; &nbsp;&lt;&lt; rgba[0] &lt;&lt; ", " &lt;&lt; rgba[1] &lt;&lt; ", " &lt;&lt; rgba[2] &lt;&lt; endl;<br>
&nbsp; &nbsp; return 0;<br>
&nbsp; &nbsp; }<br><br>when my programe run at this&nbsp; 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?&nbsp; 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>

                
                                                                                                                          
                                <!-- --><style></style></div></div>