几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】color index problem (http://www.dimcax.com/hust/showthread.php?t=15426)

yang686526 2009-05-04 05:54 PM

【转帖】color index problem
 
color index problem
color index problem
hi.
i have a color problem.
i am using layer->setcolorindex(indexcolor) and indexcolor can set to 0.
what is it the range values to indexcolor?
thank you.
quote:
what is it the range values to indexcolor?
the color index must be between 1 and 256 (inclusive), iirc.
code:
0 < colorindex < 257
for drawing entities,
code:
0 <= colorindex <= 256
where 0 = byblock and 256 = bylayer
for layers, colors of byblock and bylayer are not allowed, so
code:
0 < colorindex < 256


所有的时间均为北京时间。 现在的时间是 10:05 AM.