Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbLayerTableRecord::setTransparency Method (const OdCmTransparency&)
Syntax
C++
OdResult setTransparency(const OdCmTransparency& cmTransparency);

Sets the transparency for the layer record object (as XData) and returns eOk if successful. This transparency is used when the Transparency property of an entity belonged to this layer is set to byLayer value. The initial value is byAlpha = 100% value (solid) by default. The same entity can be rendered using different transparencies in different viewports. 

 

Parameters
Description
cmTransparency
[in] Reference to the transparency instance to be set as an Alpha-value in range 1 to 255.

The same layer can have different transparencies in different viewports. Therefore this method is overdriven. The method with one argument sets the own transparency of the layer.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

Colors and Transparencies 

!!OVERLOADED_transparency_OdDbLayerTableRecord OdDbLayerTableRecord::transparency() methods

Copyright © 2002-2022. Open Design Alliance All rights reserved.