开发者

Twain detect landscape for scanning

I am writing a program to get the images from a twain device. The problem is when I set the mode to landscape from the scanner gui not my program, I cannot detect it and the image is rotated wrong. If I understand the spec right ICAP_ORIENTATION should return if it is landscape or portrait or different rotation. The one scanner I try it on always returns TWOR开发者_如何学编程_ROT180 whether I set landscape or portrait. With a different scanner I get TWOR_ROT90 so I think it is sending the right code to get it. Do I understand this wrong or am I doing something else wrong? Is there a different way to detect landscape? Thanks.


I figured out I was getting the capability ICAP_ORIENTATION the wrong way, so it was sending me wrong information before making the changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜