barcode creation
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
barcode creation
I've updated to the latest version of the GDPicture.NET and it looks like we've lost some barcode creation methods.
I'm mainly concerned with the getwidth methods that would get the size of the barcode requirements on the document.
Are these gone, or is there another way of handling this?
I'm mainly concerned with the getwidth methods that would get the size of the barcode requirements on the document.
Are these gone, or is there another way of handling this?
Re: barcode creation
Hi,
All previous barcode creation methods have been deprecated to be able to provide an new barcode witting support.
Now, the width of the barcode should be specified by you using the Barcode1DWrite method.
Let me know if you encounter problems of migration for barcode features.
With best regards,
Loïc
All previous barcode creation methods have been deprecated to be able to provide an new barcode witting support.
Now, the width of the barcode should be specified by you using the Barcode1DWrite method.
Let me know if you encounter problems of migration for barcode features.
With best regards,
Loïc
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
I was using the previous features to verify the barcode would fit on the page.
I would like to be able to produce a barcode in the bottom-right or bottom-left of a standard 8.5 x 11 page and print this barcode to a document. I have not been able to get the barcode closer than 2 inches to the bottom of the page so far. I have tried the printfit and the regular print methods.
ok, n/m i'm a dumba$$...got my x's and y's mixed up....
This should be right at the bottom of the page and it is not. Am I using this wrong?
Are the dimensions for the barcode the "allowed" size or actual size meaning the barcode will "stretch" to fill my sizes specified?
I would like to be able to produce a barcode in the bottom-right or bottom-left of a standard 8.5 x 11 page and print this barcode to a document. I have not been able to get the barcode closer than 2 inches to the bottom of the page so far. I have tried the printfit and the regular print methods.
Code: Select all
tDoc = oImaging.CreateNewGdPictureImage(1700, 2200, pixF, Color.White)
oImaging.Barcode1DWrite(tDoc, Barcode1DWriterType.Barcode1DWriterCode128, docType.Text.ToUpper, 10, 1600, 500, 75, Color.Black)
This should be right at the bottom of the page and it is not. Am I using this wrong?
Are the dimensions for the barcode the "allowed" size or actual size meaning the barcode will "stretch" to fill my sizes specified?
Re: barcode creation
Hi,
Try this
1600 + 75 = 1675 (your page is 1700 pixel height so you should have a barcode height of 100)
Kind regards,
Loïc
Try this
Code: Select all
oImaging.Barcode1DWrite(tDoc, Barcode1DWriterType.Barcode1DWriterCode128, docType.Text.ToUpper, 10, 1600, 500, 100, Color.Black)
Yes.Are the dimensions for the barcode the "allowed" size or actual size meaning the barcode will "stretch" to fill my sizes specified?
Kind regards,
Loïc
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
Will any error occur if the data applied to the barcode is too much for the size specified?
Re: barcode creation
If the destination area is not large enough a GdPicture status BarcodeInvalidDestinationSize is returned.
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
With the above code, the barcode produced is not recognizable. I am trying to recognize in the sample application.
Re: barcode creation
Unfortunately I can't test it for you because I don't have the content of docType.Text.ToUpper
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
it is just a string from a textbox. Seems to affect long strings...
Re: barcode creation
OK but which string ?it is just a string from a textbox
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
the string can be any series of words...
i tried "SAMPLE" => worked.
I tried "SAMPLE WITH CHEESE ON IT" => No barcode found and the gdpicturestatus = 0
(using the 2.0 framework)
i tried "SAMPLE" => worked.
I tried "SAMPLE WITH CHEESE ON IT" => No barcode found and the gdpicturestatus = 0
(using the 2.0 framework)
Re: barcode creation
OK I understand.
The bars of your bar code are a bit too close.
You have 3 solutions:
1 - Scale the image before scanning barcode (consume performance)
2 - Scan barcode to a region of interest (the barcode should be into this region): See sample Barcode Recognition
3 - Enlarge your barcode destination, IE:
Kind regards,
Loïc
The bars of your bar code are a bit too close.
You have 3 solutions:
1 - Scale the image before scanning barcode (consume performance)
2 - Scan barcode to a region of interest (the barcode should be into this region): See sample Barcode Recognition
3 - Enlarge your barcode destination, IE:
Code: Select all
Imaging1.Barcode1DWrite(m_CurrentImage, Barcode1DWriterType.Barcode1DWriterCode128, "SAMPLE WITH FRENCH CHEESE ON IT", 10, 1600, 800, 100, Color.Black)
Loïc
- kketterman
- Posts: 32
- Joined: Tue Apr 21, 2009 6:55 pm
Re: barcode creation
is there any suggested way to calculate the size of the region based on the size of the barcode data?
Does each char in the barcode require a specific # of pixels?
Does each char in the barcode require a specific # of pixels?
Re: barcode creation
Hi,
NOTE: I worked few hours between my previous answer because your latest question raise me some interrogations. Therefore, I modified a bit the barcode reader to provide more accurate results on ROI. So, please make test with the current beta release which can be downloaded from https://www.gdpicture.com/download/beta/ ... re.NET.dll
With best regards,
Loïc
Not really. However, the processing time increase with the depth of the ROI.is there any suggested way to calculate the size of the region based on the size of the barcode data?
NOTE: I worked few hours between my previous answer because your latest question raise me some interrogations. Therefore, I modified a bit the barcode reader to provide more accurate results on ROI. So, please make test with the current beta release which can be downloaded from https://www.gdpicture.com/download/beta/ ... re.NET.dll
Good question, but to be honest I never made any bench to find a good ratio between barcode value and barcode length. Simply because it depends both from barcode type and barcode data...Does each char in the barcode require a specific # of pixels?
With best regards,
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest