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

◆ color_substitution() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::color_substitution ( const xtd::drawing::image image,
int32  threshold,
const drawing::color source_color,
const xtd::drawing::color new_color 
)
staticnoexcept

Creates a new image where the specified source color is replaced by the new color.

Parameters
imageThe image to filter.
thresholdThe threshold value (from 0 to 765).
source_colorThe source color.
new_colorThe new color.
Returns
The converted image.
Appearance
Original Converted