Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMentalRayRenderSettings::setSamplingContrastColor Method
Syntax
C++
OdResult setSamplingContrastColor(float red, float green, float blue, float alpha);

Sets the SamplingContrastColor for this MentalRayRenderSettings object.

Parameters
Description
red
[in] Red color channel threshold. [0.0 .. 1.0]
green
[in] Green channel threshold. [0.0 .. 1.0]
blue
[in] Blue channel threshold. [0.0 .. 1.0]
alpha
[in] Alpha channel threshold. [0.0 .. 1.0]

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

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-2022. Open Design Alliance All rights reserved.