[MSCE C++]颜色获取问题

请问老师,

       如下模型中,我使用下面代码获取颜色。无法获取正确的显示颜色。displayParams.GetLineColorTBGR();可以获取正确颜色,但是对于正常模型,此方法获取到的却是错误的颜色。请问这个如果解决?

	virtual void _AnnounceElemDisplayParams(ElemDisplayParamsCR displayParams)
	{
		if(displayParams.IsFillColorTBGR()){
			color = displayParams.GetFillColorTBGR();
		}else if (displayParams.IsLineColorTBGR()) {
			color = displayParams.GetLineColorTBGR();
		}else {
			color = displayParams.GetLineColor();
		}
		//color = displayParams.GetLineColorTBGR();
		material_struct.transparency = displayParams.GetTransparency();
	}

3554.ttt.dgn

Parents Reply Children
No Data