API Reference > OdCm Classes > OdCmTransparency Class > OdCmTransparency Methods > OdCmTransparency::setMethod Method
OdCmTransparency::setMethod Method
Syntax
C++
void setMethod(transparencyMethod method);
Parameters 
Description 
transparencyMethod method 
[in] Transparency method as the transparencyMethod enumeration. 

Sets the transparency method for the transparency object. 

 

The transparency method can be one of the following: 

 

Name 
Value 
Description 
kByLayer 
Transparency is specified by the layer object that the object is assigned to. 
kByBlock 
Transparency is specified by the block object that the object is contained in. 
kByAlpha 
Transparency is specified by an alpha value. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.