TransformsProvider.Shadow Method (Color, Single, Single, Single, Single, Boolean)

Applies a shadow effect to the bitmap using the specified settings.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void Shadow(
	Color shadowColor,
	float horizontalOffset,
	float verticalOffset,
	float radius,
	float threshold,
	bool enlargeToFit
)

Parameters

shadowColor

Type: Aurigma.GraphicsMill.Color

A Color of this shadow.
horizontalOffset

Type: System.Single

The horizontal offset of the shadow.
verticalOffset

Type: System.Single

The vertical offset of the shadow.
radius

Type: System.Single

The blur radius used to blur the shadow.
threshold

Type: System.Single

The higher the threshold, the less shadows are cast.
enlargeToFit

Type: System.Boolean

true if the image fits an entire shadow; otherwise, false.

Remarks

When you apply this effect, the image drops a shadow with specified parameters (taking into account transparent areas of the image). This effect is ideal for creating artistic texts, logos, etc.

Note

If the bitmap does not have an alpha channel (e.g. its pixel format is Format24bppRgb), alpha channel is automatically added. So be aware that pixel format of the output bitmap may differ from the input one.

See Also

Reference