Image.shadowImage

Simulates a shadow from the specified image and returns it. This method only works when the image has opaque parts and transparent parts. Note that the resulting image is just the shadow.

class Image
shadowImage
(
ssize_t xOffset
,
ssize_t yOffset
,
double sigma = 4
,
double opacity = 1
)

Parameters

xOffset
Type: ssize_t

The shadow x offset.

yOffset
Type: ssize_t

The shadow y offset.

sigma
Type: double

The standard deviation of the Gaussian operator used to produce the shadow. The higher the number, the "blurrier" the shadow, but the longer it takes to produce the shadow.

opacity
Type: double

The percent opacity of the shadow. A number between 0.1 and 1.0

Return Value

Type: Image

The shadows for this image.

Meta