API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > transparency Method > OdDbLayerTableRecord::transparency Method (OdDbObjectId&, bool*)
OdDbLayerTableRecord::transparency Method (OdDbObjectId&, bool*)
Syntax
C++
OdCmTransparency transparency(const OdDbObjectId& idViewport, bool* pIsOverride = 0) const;
Parameters 
Description 
const OdDbObjectId& idViewport 
[in] Object ID of the viewport for which the transparency value should be obtained.  
bool* pIsOverride = 0 
[out] Pointer to the Boolean variable in which this method saves the result: True if it is the specific transparency previously specified for the viewport, or False if it is own transparency and the layer does not store a transparency for the specified viewport. 

Returns the transparency for the layer record object (as XData). This transparency is used when the Transparency property of an entity belonged to the layer is set to the byLayer value. The actual transparency value can depend on the viewport in which the entity is rendered. 

 

The same layer can have different transparencies in different viewports. Therefore this method is overdriven. The method with two arguments returns the specific transparency specified for the viewport or own transparency if the specific transparency is not specified for the viewport.

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbLayerTableRecord::setTransparency() method

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