I created WIA Wrapper, which I believe will be useful for some people. It is still under development, but it all works, except that the HasNextPage method does not work. I took the code from different sources. But basically, in my code, WIA.Properties does not change if there are no pages left in the ADF, so it always thinks there is another page? I could do sloppy (try to catch if there is no paper error, but it is very messy)
Any ideas?
heres my code:
ps - I am not opposed to criticism regarding coding standards, comment on something that will make me a better programmer :)
(There are a few lines of code that I have to try and debug it). The main problem is that no matter what I do, the processing status of the document does not change
public struct PageSize { public double Height; public double Width; public PageSize(double height, double width) { this.Height = height; this.Width = width; } } class WIA_PROPERTIES { public const uint WIA_RESERVED_FOR_NEW_PROPS = 1024; public const uint WIA_DIP_FIRST = 2; public const uint WIA_DPA_FIRST = WIA_DIP_FIRST + WIA_RESERVED_FOR_NEW_PROPS; public const uint WIA_DPC_FIRST = WIA_DPA_FIRST + WIA_RESERVED_FOR_NEW_PROPS;
source share