dejanmauer / WIAScanner

Scan from WIA or TWAIN compatible scanner from .NET code (C#, VB.NET, ...) with few lines of code.
http://www.mauer.si/projects
3 stars 4 forks source link

Auto detect height and width of the scanner #1

Open supportreq opened 6 years ago

supportreq commented 6 years ago

Is there a way where the scanner height and width can be auto detected?

alawii84 commented 4 years ago

Is there a way where the scanner height and width can be auto detected?

dejanmauer commented 4 years ago

Hi! For detection of the device height/width you need to extend the code to check for WIA property WIA_IPS_PAGE_SIZE. More: https://docs.microsoft.com/en-us/windows/win32/wia/-wia-wia2-pagesizeconstants