- Code: Select all
While AxImaging1.CreateImageFromTwain <> 0
nPageCount += 1
AxImaging1.ConvertTo8BppQ()
nAcquiredImage = AxImaging1.GetNativeImage
If nPageCount = 1 Then
m_nTiffMultipage = AxImaging1.TiffCreateMultiPageFromGdPictureImage(nAcquiredImage)
m_dlgViewer.m_nTiffMultipage = m_nTiffMultipage
Else
AxImaging1.TiffAppendPageFromGdPictureImage(m_nTiffMultipage, nAcquiredImage)
End If
m_dlgViewer.AxGdViewer1.SetNativeImage(m_nTiffMultipage)
m_dlgViewer.AxGdViewer1.DisplayLastFrame()
AxImaging1.CloseImage(nAcquiredImage)
End While
This was previously working, but with the latest revision any call to m_dlgViewer.AxGdViewer1 bombs with the error, "Invalid image: Can not get picture height." Is there a problem with getting these two objects to communicate across different forms?
