TA的每日心情 | 开心 昨天 06:36 |
---|
签到天数: 15 天 [LV.4]偶尔看看III
管理员
- 积分
- 1308
|
- static COLORREF GetRGBFromEntity( AcDbEntity *ent )
- {
- COLORREF colorRef = RGB(255, 255, 255);
- AcCmColor Color = ent->color();
- AcCmEntityColor::ColorMethod ColorMethod = Color.colorMethod();
- switch(ColorMethod)
- {
- case AcCmEntityColor::kByACI:
- {
- long acirgb, r,g,b;
- acirgb = AcCmEntityColor::lookUpRGB(Color.colorIndex());
- b = ( acirgb & 0xff00L );
- g = ( acirgb & 0xff00L ) >> 8;
- r = acirgb >> 16;
- colorRef = RGB( r, g, b);
- break;
- }
- }
- return colorRef;
- }
复制代码 |
|