API Reference > OdCm Classes > OdCmTransparency Class > OdCmTransparency Methods > OdCmTransparency::setAlpha Method
OdCmTransparency::setAlpha Method
Syntax
C++
void setAlpha(OdUInt8 alpha);
Parameters 
Description 
OdUInt8 alpha 
[in] Alpha value as an integer value in the range 0 to 255. 

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

 

An alpha value defines the degree of transparency. Alpha = 0 corresponds to full transparency. Alpha = 255 corresponds to full opacity.

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