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

TransformsProvider.Shadow Method (Color, Single, Single)

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 _
)
C#
public void Shadow(
	Color shadowColor,
	float horizontalOffset,
	float verticalOffset
)

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.

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.

Examples

Visual Basic
bitmap.Transforms.Shadow(Aurigma.GraphicsMill.RgbColor.Gray, 10, 10)
C#
bitmap.Transforms.Shadow(Aurigma.GraphicsMill.RgbColor.Gray, 10, 10);

See Also

Reference