API Reference > OdCm Classes > OdCmTransparency Class > OdCmTransparency Methods > OdCmTransparency::setAlphaPercent Method
OdCmTransparency::setAlphaPercent Method
Syntax
C++
void setAlphaPercent(double alphaPercent);
Parameters 
Description 
double alphaPercent 
[in] Alpha as a double value in the range from 0.0 to 1.0. 

Sets the alpha value as a percentage and switches the transparency method to kByAlpha for the transparency object. 

 

An alpha value defines the degree of transparency. Alpha = 0.0 corresponds to full transparency. Alpha = 1.0 corresponds to full opacity.

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