Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, July 23, 2009 2:48:36 AM(UTC)
modonnell

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



File Attachment(s):
test.zip (287kb) downloaded 23 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, July 23, 2009 7:36:46 AM(UTC)

GregR  
GregR

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.048 seconds.