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

◆ bitonal() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::bitonal ( const xtd::drawing::image image,
int32  threshold,
const color upper_color,
const color lower_color 
)
static

Creates a new lower and upper image of the specified image with specified threshold, upper color and lower color.

Parameters
imageThe image to convert into lower and upper colors.
thresholdThe threshold value (from 0 to 765).
upper_colorThe color used when RGB color is upper the threshold value.
lower_colorThe color used when RGB color is under or equal the threshold value.
Returns
The converted image.
Appearance
Original Converted