If possible, could I see an example of how to determine if an image (gathered from TWAIN) is mostly blank? I'm reading documents from a scanner with an ADF in duplex mode, and I'd like to leave out blank pages in my resulting PDF.
EDIT: Ok nevermind, I figured it out! I still think it'd be a great example though.
Testing for (mostly) blank page
Re: Testing for (mostly) blank page
The IsBlank() method can be used for that.
https://gdpicture.com/references/gdpictu ... Blank.html
ex:
Loïc
https://gdpicture.com/references/gdpictu ... Blank.html
ex:
Code: Select all
Dim nImageID As Long
Imaging1.TwainOpenDefaultSource
Imaging1.TwainSetHideUI (False)
nImageID = Imaging1.CreateImageFromTwain()
Imaging1.TwainCloseSource
If nImageID <> 0 Then
If Imaging1.IsBlank(98) = True Then
Call Imaging1.CloseImage(nImageID)
End If
End If
Who is online
Users browsing this forum: No registered users and 1 guest