[vtkusers] 回复: a problem when run TestAreaSelections.cxx
455535440
455535440 at qq.com
Mon Jun 6 12:52:30 EDT 2011
I got it thank you ~~~~~
------------------ 原始邮件 ------------------
发件人: "David E DeMarle";
发送时间: 2011年6月7日(星期二) 凌晨0:48
收件人: "455535440"<455535440 at qq.com>;
抄送: "vtkusers";
主题: Re: [vtkusers] a problem when run TestAreaSelections.cxx
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.
Google search for color depth for your OS to determine how to increase and it will start working.
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
2011/6/6 455535440 <455535440 at qq.com>
hello everybody~~
today I try the example :TestAreaSelections.cxx
here is a part of code in this file
renWin->Render();
int rgba[4];
renWin->GetColorBufferSizes(rgba);
if (rgba[0] < 8 || rgba[1] < 8 || rgba[2] < 8)
{
cout <<"Color buffer depth must be atleast 8 bit. Currently: "
<< rgba[0] << ", " << rgba[1] << ", " << rgba[2] << endl;
return 0;
}
when my programe run at this i got the rgba[0] ,rgba[1] , rgba[2] value 5,6,5,and it retrun wieh 0
the message is "Color buffer depth must be atleast 8 bit. Currently,"what did this mean?
i use the image data that suporrted in vtkdata, I don't know what the problem is,can any one give me help? thx~~
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110607/b424278d/attachment.htm>
More information about the vtkusers
mailing list