API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdBaseNodeMotion Class > OdBaseNodeMotion Methods > OdBaseNodeMotion::getOpacity Method
OdBaseNodeMotion::getOpacity Method
Syntax
C++
virtual bool getOpacity(double& opacity);
Parameters 
Description 
double& opacity 
[out] A placeholder for the opacity value.  

Returns true if the node opacity should be taken into account during the animation; otherwise it returns false.

Returns the current opacity level for the node motion object. The method fills a passed double value with the opacity value then returns it to a calling subroutine.

This method should be re-implemented and return true if you want the node animation algorithm to take the node opacity level into account. Default implementation returns false.

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