TIEImageEnGlobalSettings.LayerShadowAlphaThreshold
Declaration
property LayerShadowAlphaThreshold: Integer;
Description
Specifies the threshold separating foreground and background pixels when applying a
soft shadow to a layer.
The range is 0 to 255. A low value may show color artifacts where anti-aliased curves merge with the shadow. A value too high will lessen the anti-aliasing of curves (making them look blocky).
Default: 50
Examples
// Increase the alpha background threshold (reducing color merging artifacts)
IEGlobalSettings().LayerShadowAlphaThreshold := 172;
ImageEnView1.Update();
// Decrease the alpha background threshold (improving anti-aliasing)
IEGlobalSettings().LayerShadowAlphaThreshold := 0;
ImageEnView1.Update();