应用场景:
扫描时,实时加载扫描的影像到RasterImageList,以便已缩略图的形式显示扫描影像,扫描影像分
黑白,灰度,彩色,当扫描影像页数很多时(如200页,彩色扫描),系统会抛出以下异常:
System.InvalidOperationException: You have exceeded the amount of memory allowed for RasterImage allocations.
See RasterDefaults::MemoryThreshold::MaximumGlobalRasterImageMemory.
at Leadtools.RasterImage.CreateFromBitmapHandle(IntPtr bitmapHandle, Boolean noFreeOnDispose)
at Leadtools.Codecs.RasterCodecs.DoLoad(LoadParams loadParams)
at Leadtools.Codecs.RasterCodecs.Load(String fileName)
修改对应MaximumGlobalRasterImageMemory属性值,效果不大,除以下2种方法,请问有什么好的办法?
1.分页显示
2.换64位版本dll |
|