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

ICAP_PHYSICALWIDTH

Forums › TWAIN Classic › ICAP_PHYSICALWIDTH

  • This topic has 3 replies, 3 voices, and was last updated 14 years ago by Dark Angel.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 5, 2006 at 11:00 am #22016 Reply
    nati
    Participant
    • Topics - 2
    • Replies - 1
    • Total Posts - 3

    Hello, since i can modifiy the maximum width and height that can be acquire by the source device if the capability ICAP_PHYSICALWIDTH and ICAP_PHYSICALHEIGHT aren´t MSG_SET allowed. Alone I want to scan a zone.

    Thank you for your help.

    October 6, 2006 at 11:40 am #23491 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    As you can not chance the physical dimensions of your scanner you can not chance ICAP_PHYSICALWIDTH. Please refer in the TWAIN spec to DAT_IMAGELAYOUT to setup the scan area.

    Best regards,

    Kaij
    http://www.twaintools.com

    October 13, 2006 at 8:21 am #23492 Reply
    nati
    Participant
    • Topics - 2
    • Replies - 1
    • Total Posts - 3

    Hello,

    I have tried this:

    TwImageLayout til = new TwImageLayout();
    TwRC rc = DSilay(appID, dsID, TwDG.Image, TwDAT.ImageLayout, TwMSG.Get, til);

    til.Frame = new TwFrame();
    til.Frame.Left = new TwFix32(0);
    til.Frame.Right = new TwFix32(6.80f);
    til.Frame.Top = new TwFix32(0);
    til.Frame.Bottom = new TwFix32(4.20f);
    rc = DSilay(appID, dsID, TwDG.Image, TwDAT.ImageLayout, TwMSG.Set, til);

    but when I go Set rc es Failure. Why?

    Thank you.

    January 16, 2007 at 9:27 am #23493 Reply
    Dark Angel
    Participant
    • Topics - 3
    • Replies - 5
    • Total Posts - 8

    Hi nati:

    I am having the same problem I am setting the Frame by using the triplet
    Control / ImageLayout / set

    but I am always get return code (Failure)

    I don’t know why I am trying to fix it rightnow

    My scanner doesn’t support ICAP_Frames so I have to set the frame using
    the past triplet

    the code:

    TWImageLayout imgLO = new TWImageLayout()

    imgLO.Frame.Top = 0
    imgLO.Frame.Left = 0
    imgLO.Frame.Right = 2
    imgLO.Frame.Buttom = 2

    imgLO.PageNumber = 1
    imgLO.Document = 1
    imgLO.FrameNumber = 1

    by the way sometimes it returns success and set the imagelayout structure to zeros and when I scan I get image with the maximum size
    (rightnow I am doing these tests with twain toolkit)

    If you interested maybe we can get this out together

    thanks in advance

    Dark Angel

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: ICAP_PHYSICALWIDTH
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

  • 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.
  • To get the list of scanners from javascript client side (browser)
  • 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.