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

◆ color_extraction() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::color_extraction ( const xtd::drawing::image image,
int32  threshold,
const drawing::color extraction_color,
const xtd::drawing::color other_pixels_color 
)
staticnoexcept

Creates a new filtered image with specified color and replaces all other colors with other specified color.

Parameters
imageThe image to filter color.
thresholdThe threshold value (from 0 to 765).
extraction_colorThe extraction color.
other_pixels_colorThe other pixels color.
Returns
The converted image.
Appearance
Original Converted