Applies a shadow effect to the bitmap using the specified settings.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void Shadow( Color shadowColor, float horizontalOffset, float verticalOffset, float radius, bool enlargeToFit )
Type: Aurigma.GraphicsMill.Color
A Color of this shadow.Type: System.Single
The horizontal offset of the shadow.Type: System.Single
The vertical offset of the shadow.Type: System.Single
The blur radius used to blur the shadow.Type: System.Boolean
true
if the image fits an entire shadow; otherwise, false
.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.
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.