解决高分辨率或长文稿不出图的问题;

This commit is contained in:
yangjiaxuan 2024-06-20 14:14:52 +08:00
parent 2a91ce6a11
commit 33f4eb92b0
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; HGResult ret = HGBASE_ERR_FAIL;
int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8; int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8;
if (fileSize > 200 * 1024 * 1024) if (fileSize > 50 * 1024 * 1024)
{ {
HANDLE hMem = NULL; HANDLE hMem = NULL;
if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem)) if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem))