LEADTOOLS Support
Document
Document SDK Questions
Can't read barcode from JPEG file using COM Interop layer
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, July 23, 2009 2:48:36 AM(UTC)
Groups: Registered
Posts: 12
Hi
we're using LEADTools 15.00 to read barcodes from TIF and JPEG files using the COM Interop layer from a VB 6 application.
It reads the barcode on the TIF files perfectly but cannot read the
barcode on JPEG correctly. The .NET barcode demo does read it correctly
We're using version 15.0.1.1 of LTDBarcodeInterop.dll and 15.0.1.3 of Leadtools.Barcode.dll
I have attached a zip file (test.txt) that contains the JPEG file
and a little text VB6 application that contains the code we're using to
open the image and search for it's barcodes.
I would be very grateful for any help, I presume I doing something silly or left out one obvious line
thanks
Martin
#2
Posted
:
Thursday, July 23, 2009 7:36:46 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The problem is that you are passing the UseColors flag but aren't setting the colors to be used. This means that both your bar and space color are black. You need to set the bar color to black and the space color to white like this:
Dim clrBar As New RasterColor
Dim clrSpace As New RasterColor
clrBar.Ctor_3 0, 0, 0
clrSpace.Ctor_3 255, 255, 255
Set oBarColor.BarColor = clrBar
Set oBarColor.SpaceColor = clrSpace
LEADTOOLS Support
Document
Document SDK Questions
Can't read barcode from JPEG file using COM Interop layer
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.