CAD brightness setting layer (com interface)

The main use of Function:

 

MxDrawXCustomFunction :: Mx_SetLayerBright

 

Display brightness setting, the default value of 100%. Details are as follows:

 

parameter Explanation

LPCTSTR pszLayerName

Layer names, is empty, set all layers

DOUBLE bright

Luminance percentage, ranging from 0 to 100

LONG lisAutoUpDisplay

Whether to automatically update the display

 

c # Code Description implemented:

 

1
2
3
4
5
6
7
8
9
     MxDrawResbuf param =  new  MxDrawResbuf();     
     // 图层名     
     param.AddString( "222" );     
     // 图层亮度.
     param.AddDouble(50);     
     // 不自动调用更新函数。     
     param.AddLong(0);
 
     axMxDrawX1.CallEx( "Mx_SetLayerBright" , param);

Guess you like

Origin www.cnblogs.com/yzy0224/p/10984559.html