twain小于200MB的图像文件采用数据传输,否则用文件传输

This commit is contained in:
yangjiaxuan 2024-06-24 15:26:34 +08:00
parent 6bebf939af
commit 1940c573f9
1 changed files with 1 additions and 1 deletions

View File

@ -1158,7 +1158,7 @@ HGResult HGTwainDSImpl::ImageNativeXfer(HGUInt type, HGUInt origin, HGImage* ima
HGResult ret = HGBASE_ERR_FAIL;
int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8;
if (fileSize < 50 * 1024 * 1024)
if (fileSize < 200 * 1024 * 1024)
{
HANDLE hMem = NULL;
if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem))