xtd 0.2.0
Loading...
Searching...
No Matches

◆ drop_shadow() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::drop_shadow ( const xtd::drawing::image image,
int32  horizontal_shadow,
int32  vertical_shadow,
int32  blur,
const xtd::drawing::color color 
)
static

Create a new imgae with drop shadow with the specified image, horizontal and vertical shadow, blur radius, and the shadow color.

Parameters
imageThe image to add drop shadow.
horizontal_shadowSpecifies a pixel value for the horizontal shadow in pixels. Negative values place the shadow to the left of the image.
vertical_shadowSpecifies a pixel value for the vertical shadow in pixels. Negative values place the shadow to the left of the image.
blurAdds a blur effect to the shadow in pixels. A larger value will create more blur (the shadow becomes bigger and lighter). Negative values are not allowed. If no value is specified, 0 is used (the shadow's edge is sharp).
colorAdds a color to the shadow.
Appearance
Original Converted