Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Twain.SetShadow

Specifies which value in an image should be interpreted as the darkest shadow.

Component Version macOS Windows Linux Server iOS SDK
Twain 3.5 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Twain.SetShadow"; Value )   More

Parameters

Parameter Description Example
Value The new brightness setting. 0

Result

Returns OK.

Description

Specifies which value in an image should be interpreted as the darkest shadow.
All values darker then this value will be clipped to this value.

Whether darker values are smaller or larger can be determined by examining the Current value of PixelFlavor.
Source

If more or less than 8 bits are used to describe the image, the actual data values should be normalized to fit within the 0-255 range. The normalization need not result in a homogeneous distribution if the original distribution was not homogeneous.
Plugin uses value -10000 for undefined/default.

See also

This function is free to use.

Created 18th August 2014, last changed 3th April 2021


Twain.SetResolutionY - Twain.SupportsBW