twain小于200MB的图像文件采用数据传输,否则用文件传输
This commit is contained in:
parent
6bebf939af
commit
1940c573f9
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue