API Reference > Classes > PRC Graphical Classes > OdPrcRgbColor Class > OdPrcRgbColor Methods > OdPrcRgbColor::setR Method
OdPrcRgbColor::setR Method
Syntax
C++
OdResult setR(double r);
Parameters 
Description 
double r 
[in] A new red component value to be set. 0-1 range.
 

Returns eOk if a new red component value was successfully set or an appropriate error code in the other case.

Sets a new red component value. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.