Add a soft shadow (Gaussian Shadow) to the image. The intensity comes from radius parameter (>0), and the light effect from OffsetX and OffsetY.

AddSoftShadow creates the shadow effect using the image alpha channel (create it if not exist), the to see the effect you should set IEViewer.EnableAlphaChannel to True.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 7.5.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void AddSoftShadow(
	double radius,
	int offsetX,
	int offsetY,
	bool adaptSize,
	IERGB color,
	int intensity
)
Public Sub AddSoftShadow ( _
	radius As Double, _
	offsetX As Integer, _
	offsetY As Integer, _
	adaptSize As Boolean, _
	color As IERGB, _
	intensity As Integer _
)
public:
void AddSoftShadow(
	double radius, 
	int offsetX, 
	int offsetY, 
	bool adaptSize, 
	IERGB color, 
	int intensity
)

Parameters

radius
Double
Radius-Intensity of the shadow
offsetX
Int32
Horizontal offset
offsetY
Int32
Vertical offset
adaptSize
Boolean
If adaptSize is true (the default) the image is resized to contain the shadow.
color
IERGB
This is the shadow color.
intensity
Int32
(default 100) is the shadow intensity, with values in the range 0 and 100 (maximum).

See Also