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

◆ grayscale() [4/4]

static xtd::drawing::image xtd::drawing::image_converter::grayscale ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with grayscale colors of the specified image with specified percent factor.

Parameters
imageThe image to be transformed into grayscale.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
Thus, 1.0 will make the color completely gray, while 0.0 return the original image.
Appearance
Original Converted