TransformsProvider.Shadow Method (Color, Single, Single)

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
)

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.

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