图像头添加DPI数据

This commit is contained in:
gb 2022-11-06 16:48:38 +08:00
parent 6305812850
commit 4bef595693
1 changed files with 1 additions and 0 deletions

View File

@ -2687,6 +2687,7 @@ int hg_scanner::save_final_image(hg_imgproc::LPIMGHEAD head, void* buf)
img.data = (unsigned char*)buf; img.data = (unsigned char*)buf;
img.bytes = head->total_bytes; img.bytes = head->total_bytes;
img.flag.statu = head->statu; img.flag.statu = head->statu;
img.flag.dpi = resolution_;
if (img.flag.statu) if (img.flag.statu)
{ {