Dynamic Web TWAIN: How can I display an image in its actual size

You can set the view mode to -1*-1 and then set the property IfFitWindow to 'false' to display the image in its full size.

Code Snippet

function scanImage() {
    if (DWObject) {
        DWObject.SelectSource();
        DWObject.OpenSource();
        DWObject.SetViewMode(-1, -1);
        DWObject.IfFitWindow = false;
        DWObject.AcquireImage();        
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.