Home › Forums › TWAIN Classic › twain 1.7 bugs? Memory Transfer discuss
- This topic has 0 replies, 1 voice, and was last updated 14 years, 11 months ago by zm123.
- AuthorPosts
Hi all,
I find the startscan() in the demo is located in ImageFileXferMsg(),ImageFileXferMsg() and ImageNativeXferMsg(). In Navtive transfer mode it’s ok, but in Mem transfer mode the App will ask for ImageInfo (DAT_IMAGEINFO) first and then Image get (DAT_IMAGEMEMXFER). That means the App will ask for the image size before you scan it… I put the real scan process in IDOK before ImageXferReady, am I right?
Another question is my scanner has 16 gray scale and 256 gray scale. In Mem transfer mode I find in App code they both use TWPT_GRAY to get the palette, but that’s 256 color palette, can only be used for 256 Gray scale. I use (DG_IMAGE, DAT_PALETTE8, MSG_GET) to get the scanned image palette and now the App works fine. But when I use Office Document Scanning the 16 gray scale was still not correct, is there something I have missed? Or the Office Scanning uses 256 color palette for 16 gray color too?
Thanks for every advice
- AuthorPosts