API Reference > OdCm Classes > OdCmTransparency Class > OdCmTransparency Constructor > OdCmTransparency::OdCmTransparency Constructor (OdUInt8)
OdCmTransparency::OdCmTransparency Constructor (OdUInt8)
Syntax
C++
OdCmTransparency(OdUInt8 alpha);
Parameters 
Description 
OdUInt8 alpha 
[in] An alpha value of transparency as an integer value in the range from 0 to 255. 

details Creates a transparency object and sets its transparency property using a specified alpha value. 

 

The transparency method is set to kByAlpha. Alpha = 0 corresponds to full transparency. Alpha = 255 corresponds to full opacity.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.