API Reference > OdCm Classes > OdCmTransparency Class > OdCmTransparency Constructor > OdCmTransparency::OdCmTransparency Constructor (double)
OdCmTransparency::OdCmTransparency Constructor (double)
Syntax
C++
OdCmTransparency(double alphaPercent);
Parameters 
Description 
double alphaPercent 
[in] An alpha value of transparency in percent as a double value in the range from 0.0 to 1.0. 

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

 

The transparency method is set to kByAlpha. Alpha = 0.0 corresponds to full transparency. Alpha = 1.0 corresponds to full opacity.

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