Dear Loïc,
This is my sample code.
Sub Twain_Start()
Dim DefaultSourceName As String = "Plustek OpticSlim 550"
Dim nImageID As Integer = 0
AxGdViewer1.Clear()
AxImaging1.TwainOpenSource(DefaultSourceName)
If AxImaging1.TwainOpenDefaultSource Then
AxImaging1.TwainSetCurrentResolution(300)
AxImaging1.TwainSetCurrentPixelType(GdPicturePro5S.TwainPixelType.TWPT_RGB)
AxImaging1.TwainSetCurrentBitDepth(24)
AxImaging1.TwainSetPaperSize(GdPicturePro5S.TwainPaperSize.None)
AxImaging1.TwainSetHideUI(True)
nImageID = AxImaging1.CreateImageFromTwain(Me.Handle.ToInt32)
If nImageID <> 0 Then
AxImaging1.SetNativeImage(nImageID)
AxImaging1.AutoDeskew()
AxGdViewer1.SetNativeImage(AxImaging1.GetNativeImage)
AxImaging1.SaveAsJPEG("C:\1.jpg", 90)
End If
End If
AxImaging1.TwainCloseSource()
End Sub
When I see the output image file(C:\1.jpg) brightness of image is so white.
I use the same code on winxp sp3 no problem with it, problem is on windows7 enterprise.
Please help me check it.
Thank you
Best regards,
Wittaya
