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)