sane图像为RGB时位深为8而不是24,解决app错误
This commit is contained in:
parent
4f60853960
commit
9cd7e4573d
|
@ -2012,8 +2012,7 @@ int MainWindow::sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigne
|
||||||
else if (8 == sane_img->header.depth)
|
else if (8 == sane_img->header.depth)
|
||||||
imgType = HGBASE_IMGTYPE_GRAY;
|
imgType = HGBASE_IMGTYPE_GRAY;
|
||||||
}
|
}
|
||||||
else if (sane_img->header.format == SANE_FRAME_RGB
|
else if (sane_img->header.format == SANE_FRAME_RGB)
|
||||||
&& 24 == sane_img->header.depth)
|
|
||||||
{
|
{
|
||||||
imgType = HGBASE_IMGTYPE_RGB;
|
imgType = HGBASE_IMGTYPE_RGB;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue