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

How to set ICAP_XSCALING and ICAP_YSCALING

Forums › TWAIN Classic › How to set ICAP_XSCALING and ICAP_YSCALING

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 11 months ago by gabe.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 3, 2008 at 8:26 pm #22434 Reply
    leonardo-ferreira
    Participant
    • Topics - 2
    • Replies - 1
    • Total Posts - 3

    Hello,

    I’m new to twain and I’m finding difficulties in setting the ICAP_XSCALING and ICAP_YSCALING capabilities. The code is:

    ========
    TW_CAPABILITY cap;
    TW_INT16 rc= TWRC_FAILURE;
    pTW_ONEVALUE pv;

    cap.Cap = scalCap; // capability id
    cap.ConType = TWON_ONEVALUE; // container type
    cap.hContainer = GlobalAlloc(GHND, sizeof(TW_ONEVALUE));

    pv = (pTW_ONEVALUE)GlobalLock(cap.hContainer);
    pv->ItemType = TWTY_FIX32;
    pv->Item = 1.5;
    GlobalUnlock(cap.hContainer);

    rc = (*pDSM_Entry)(&AppId,
    &SourceId,
    DG_CONTROL,
    DAT_CAPABILITY,
    MSG_SET,
    (TW_MEMREF)&cap);

    GlobalFree(cap.hContainer);
    return rc;
    ==========

    This is a function that is being called at stage four, but the image is still being acquired without being rescaled. What am I doing wrong?

    Thanks in advance,

    Leonardo V. Ferreira

    February 21, 2009 at 12:21 pm #24732 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    what rc is being returned?

    .

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to set ICAP_XSCALING and ICAP_YSCALING
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

  • отрадный ресурс zarabotat-v-internete biz
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • 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.