API Reference > OdDb Classes > OdDbMentalRayRenderSettings Class > OdDbMentalRayRenderSettings Methods > OdDbMentalRayRenderSettings::setSamplingContrastColor Method
OdDbMentalRayRenderSettings::setSamplingContrastColor Method
Syntax
C++
OdResult setSamplingContrastColor(float red, float green, float blue, float alpha);
Parameters 
Description 
float red 
[in] Red color channel threshold. [0.0 .. 1.0]  
float green 
[in] Green channel threshold. [0.0 .. 1.0]  
float blue 
[in] Blue channel threshold. [0.0 .. 1.0]  
float alpha 
[in] Alpha channel threshold. [0.0 .. 1.0] 

Returns eOk if successful, or an appropriate error code if not.

Sets the SamplingContrastColor for this MentalRayRenderSettings object.

Additional color camples will be taken if the difference between a sample and its surrounding samples exceeds the SamplingContrastColor. 

The default value for each color channel is 1.0.

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