黑白图像判断

This commit is contained in:
mo1027728827@qq.com 2022-05-31 17:38:01 +08:00
parent 49741614f5
commit 33f057b5c0
1 changed files with 2 additions and 1 deletions

View File

@ -1856,7 +1856,8 @@ int hg_scanner::save_final_image(hg_imgproc::LPIMGHEAD head, void* buf)
std::string bw("");
final_img_index_++;
if (image_prc_param_.bits.color_mode == COLOR_MODE_BLACK_WHITE)
//if (image_prc_param_.bits.color_mode == COLOR_MODE_BLACK_WHITE)
if(img_conf_.pixtype == 0)
{
int old = head->line_bytes;
bw = bmp_821((unsigned char*)buf, head->width, head->height, &head->line_bytes, async_io_);