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
(,,
double sigma = 4
,
double opacity = 1
)

Parameters

xOffset ssize_t

The shadow x offset.

yOffset ssize_t

The shadow y offset.

sigma 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 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