API Reference > OdCm Classes > OdCmTransparency Class
OdCmTransparency Class
OdCmTransparency
Syntax
C++
class OdCmTransparency;

CmColorBase.h

This class implements a transparency object, which provides the transparency information about OdGiDrawable objects.

 
Name 
Description 
 
This is the overview for the OdCmTransparency constructor overload. 
 
Name 
Description 
 
Represents the transparency method. 
 
Name 
Description 
 
Returns the alpha value in the range from 0 to 255 of the transparency object. 
 
Returns the alpha value in the range from 0.0 to 1.0 of the transparency object. 
 
Reads from the specified .dwg filer data for this object.
 
 
Writes to the specified .dwg filer data of this object.
 
 
Checks whether the transparency method is byAlpha for the transparency object and returns true if and only if the transparency method is set to kByAlpha, otherwise it returns false. 
 
Checks whether the transparency method is byBlock for the transparency object and returns true if and only if the transparency method is set to kByBlock, otherwise it returns false. 
 
Checks whether the transparency method is byLayer for the transparency object and returns true if and only if the transparency method is set to kByLayer, otherwise it returns false. 
 
Checks whether the transparency method is byAlpha and the transparency is set to full for this transparency object. It returns true if and only if the transparency method is set to kByAlpha and Alpha = 0, otherwise it returns false. 
 
Checks whether the transparency method is an error value for the transparency object and returns true if and only if the transparency method is set to kErrorValue, otherwise it returns false. 
 
Checks whether the transparency method is byAlpha and the opacity is set to full for this transparency object. It returns true if and only if the transparency method is set to kByAlpha and Alpha = 255, otherwise it returns false. 
 
Returns the transparency method of the transparency object as a value of the transparencyMethod enumeration. 
 
Sets the transparency method and transparency components as an integer value for the transparency object.
 
 
Returns the packed 32-bit integer value that stores the transparency method and transparency components. 
 
Sets the alpha value and switches the transparency method to kByAlpha for the transparency object.
 
 
Sets the alpha value as a percentage and switches the transparency method to kByAlpha for the transparency object.
 
 
Sets the transparency method for the transparency object.
 
 
Name 
Description 
 
!= 
Compares two transparency objects as integer values, and returns true when their values are not equal or false when their values are equal. 
 
= 
Copies a transparency object specified on the right of the operator to the transparency object specified on the left. 
 
== 
Compares two transparency objects as integer values, and returns true when their values are equal or false when their values are not equal. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.