From ddb7aafffce5c1cf9e22200c3d58e9d4ef097c71 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Fri, 31 Mar 2023 14:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twain/twain/huagaods.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index 5e447da..9e88274 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -1282,7 +1282,21 @@ Result huagao_ds::imageInfoGet(const Identity&, ImageInfo& data) data.setYResolution((float)res); data.compression(m_compression); } - + else + { + load_sane_util::log_info(L" imageInfoGet is false\r\n", 0); + } + wchar_t buf[128]; + std::wstring f(L"imageInfoGet:"); + int h = data.height(); + int w = data.width(); + int bitsPerPixel = data.bitsPerPixel(); + Compression compression = data.compression(); + PixelType pixelType = data.pixelType(); + bool planar = data.planar(); + Fix32 xr = data.xResolution(); + swprintf_s(buf, _countof(buf) - 1,L"imageInfoGet: h-->%d w-->%d bitsPerPixel-->%d compression-->%d pixelType-->%d planar-->%d\r\n", h, w, bitsPerPixel, compression, pixelType, planar); + load_sane_util::log_info(buf, 0); return success(); } Result huagao_ds::imageLayoutGet(const Identity&, ImageLayout& data)