I don't want to have to program two different means of traversing backwards and forwards through the pages, since I can use DisplayNextFrame and DisplayPreviousFrame after reading in a PDF file, but then having to deal with scanned in images in a completely different way, grabbing one at a time from the Imaging object.
Using the last release of GdPicture Pro you can create easily a multipage tiff image from scanned images using an Imaging object and set this image into a GdViewer control.
Code: Select all
Dim nAcquiredImage As Long Dim nTiffMultipage As Long Dim nPageCount As Long nPageCount = 0 Imaging1.TwainOpenDefaultSource Imaging1.TwainSetAutoFeed (True) Imaging1.TwainSetAutoScan (True) While Imaging1.CreateImageFromTwain <> 0 nPageCount = nPageCount + 1 nAcquiredImage = Imaging1.GetNativeImage If nPageCount = 1 Then nTiffMultipage = Imaging1.TiffCreateMultiPageFromGdPictureImage(nAcquiredImage) Else Call Imaging1.TiffAppendPageFromGdPictureImage(nTiffMultipage, nAcquiredImage) End If Imaging1.CloseImage (nAcquiredImage) Wend Imaging1.TwainCloseSource GdViewer1.SetNativeImage (nTiffMultipage)
Here you are:
http://guides.gdpicture.com/content/web ... tocol.html
Who is online
Users browsing this forum: Google [Bot] and 1 guest