TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Strange scaling when using ICAP_UNITS, TWUN_PIXELS

Forums › TWAIN Classic › Strange scaling when using ICAP_UNITS, TWUN_PIXELS

  • This topic has 1 reply, 2 voices, and was last updated 14 years, 5 months ago by hpb.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 13, 2006 at 7:47 pm #22021 Reply
    Anonymous
    Participant
    • Topics - 60
    • Replies - 107
    • Total Posts - 167

    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

    October 24, 2006 at 6:42 pm #23502 Reply
    hpb
    Participant
    • Topics - 0
    • Replies - 8
    • Total Posts - 8

    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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Strange scaling when using ICAP_UNITS, TWUN_PIXELS
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Sports betting Bonus Code
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.