This documentation is for the old version. Go to the latest Graphics Mill docs

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

Applies a shadow effect.

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

Syntax

Visual Basic
Public Sub Shadow ( _
	shadowColor As Color, _
	horizontalOffset As Single, _
	verticalOffset As Single, _
	radius As Single, _
	enlargeToFit As Boolean _
)
C#
public void Shadow(
	Color shadowColor,
	float horizontalOffset,
	float verticalOffset,
	float radius,
	bool enlargeToFit
)

Parameters

shadowColor

Type: Aurigma.GraphicsMill.Color

Glow color.
horizontalOffset

Type: System.Single

Horizontal offset of the shadow.
verticalOffset

Type: System.Single

Vertical offset of the shadow.
radius

Type: System.Single

Value that specifies a blur radius used to blur the shadow.
enlargeToFit

Type: System.Boolean

Value that specifies whether to enlarge the image to fit entire shadow.

Remarks

You can also use Shadow class to apply this effect.

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