Output of Twain, brightness too hight
Output of Twain, brightness too hight
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
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
Re: Output of Twain, brightness too hight
Dear Loïc,
Sorry I forgot to tell about the version, I use version 5.12.0.1 (but version 5.13.8 is the same problem)
Thank you
Best regards,
Wittaya
Sorry I forgot to tell about the version, I use version 5.12.0.1 (but version 5.13.8 is the same problem)
Thank you
Best regards,
Wittaya
Re: Output of Twain, brightness too hight
Dear Loïc,
I solved it already by set "Imaging1.TwainSetCurrentBrightness(0)" I don't know why default is 300 but anyway its works fine now.
Best regards,
Wittaya
I solved it already by set "Imaging1.TwainSetCurrentBrightness(0)" I don't know why default is 300 but anyway its works fine now.
Best regards,
Wittaya
Re: Output of Twain, brightness too hight
Hi Wittaya,
Thank you for the update. I encountered similar twain driver behavior with a canon scanner. On Win7 it increase the default brightness value. I really don't know why.
Kind regards,
Loïc
Thank you for the update. I encountered similar twain driver behavior with a canon scanner. On Win7 it increase the default brightness value. I really don't know why.
Kind regards,
Loïc
Re: Output of Twain, brightness too hight
Dear Loïc,
Can you do me a favor?
I would like you to check resize function (Imaging1.ResizeImage(width, height)) on windows7 with GRAY image type for me?
I was test it on winxp sp3 not found any problem, but on windows7 the output image seems weird.
This is my code....
AxImaging1.SaveAsJPEG("C:\1.jpg") ' original
AxImaging1.ResizeImage(1454, 1017)
AxImaging1.SaveAsJPEG("C:\2.jpg") ' output
I use version 5.12.0.4
Best regards,
Wittaya
Can you do me a favor?
I would like you to check resize function (Imaging1.ResizeImage(width, height)) on windows7 with GRAY image type for me?
I was test it on winxp sp3 not found any problem, but on windows7 the output image seems weird.
This is my code....
AxImaging1.SaveAsJPEG("C:\1.jpg") ' original
AxImaging1.ResizeImage(1454, 1017)
AxImaging1.SaveAsJPEG("C:\2.jpg") ' output
I use version 5.12.0.4
Best regards,
Wittaya
Re: Output of Twain, brightness too hight
Hi,
Please first make a try with latest available version.
Kind regards,
Loïc
Please first make a try with latest available version.
Kind regards,
Loïc
Re: Output of Twain, brightness too hight
Hello Loïc,
Yes, I tried to test with latest available version 5.13.8, the result is the same.
Regards,
Wittaya
Yes, I tried to test with latest available version 5.13.8, the result is the same.
Regards,
Wittaya
Who is online
Users browsing this forum: No registered users and 1 guest