Home › Forums › TWAIN Classic › ICAP_PHYSICALWIDTH
- This topic has 3 replies, 3 voices, and was last updated 17 years, 3 months ago by Dark Angel.
- AuthorPosts
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.
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,
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.
Hi nati:
I am having the same problem I am setting the Frame by using the triplet
Control / ImageLayout / setbut 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 tripletthe code:
TWImageLayout imgLO = new TWImageLayout()
imgLO.Frame.Top = 0
imgLO.Frame.Left = 0
imgLO.Frame.Right = 2
imgLO.Frame.Buttom = 2imgLO.PageNumber = 1
imgLO.Document = 1
imgLO.FrameNumber = 1by 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
- AuthorPosts