Home › Forums › TWAIN Classic › capability and copyright
- This topic has 2 replies, 2 voices, and was last updated 15 years ago by zm123.
- AuthorPosts
Hi, I’m a newbie of Twain developer, I got some questions:
How to process the item change event of the UI of source?For example I get resolution 200dpi,300dpi,600dpi (Default 200dpi,Current 300dpi), the capability values are initialized and passed to app by source before source UI be enabled. If I changed the UI item current selection to 600dpi, is it mean I need to change the Current value of ICAP_XRESOLUTION stored in gAllCaps[SUPPORTEDCAPS+PIXELTYPE] of source? Do I need to send a message to app to notify this change?
Another question is may I develop a printer source driver based on the twain sample code? It may be used as an offical driver (so commercial use).
thanks 😯
No, you do not need to send a message to the app.
If you scan with this setting the app will get this information via TW_IMAGEINFO structure which you need to update of course.
This depends on which sample code you refer. But basically if you respect the copyright of the working group members names in the file headers, it is no problem to use it for a printer driver.
Anyhow starting from a 1.x sample source it is not a low hanging fruit to come to a robust driver.
Best regards,
Kaij
Thanks Kaij very much for the answer and advice, we’ll move to 2.x later, currently just demo, and make some preparation myself. 😀
Best Regards
- AuthorPosts