- This topic has 1 reply, 2 voices, and was last updated 17 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
The TWAIN Resource site is designed to help TWAIN users and prospective users find resources in the community for TWAIN-related products and services. Become a member.
Home › Forums › TWAIN Classic › Strange scaling when using ICAP_UNITS, TWUN_PIXELS
I am writing a twain app using a HP 4890 scanner.
When I set it up with CAP_UNITS, TWUN_PIXELS and
requests an image of 200 x 100 pix I get 132 x 67 pix.
Iow. 2/3 of the requested dimensions.
I can correct this by setting X and Y scaling to 1.5.
Same result i native and memory transfer.
I assume this is a bug in the scanner DS, or do
you know any other possible cause of this.
regards
Rehn
Yes, this is a bug in the source code. When the client sets image layout in pixels, the size is interpreted by the source as if the resolution is fixed 300ppi, which predictably results in an incorrect scan size for all resolutions other than 300.
Workaround — use 300ppi or set the size in inches or cm.