Coder Social home page Coder Social logo

Comments (6)

andrenpt avatar andrenpt commented on July 20, 2024

Hello again,

In order to replicate this issue you need to use this sizes (120,55):
var image = b.Encode(BarcodeLib.TYPE.EAN13, barcodeNumber, Color.Black, Color.White, 120, 55);

Thanks

from barcodelib.

barnhill avatar barnhill commented on July 20, 2024

The default is to put the exact data you encoded into the label ... now if you wanted to put the encoded value you are able to do that or you can put whatever you want in the label. The check digit by default isnt put in the label. The label functionality is pretty generic and applies to all symbologies but Id be open to pull requests that include specific labeling for symbology types.

from barcodelib.

barnhill avatar barnhill commented on July 20, 2024

@andrenpt there is new functionality as of tonight to print EAN-13 labels in a more standard format. Im going to close this since that is in now.

from barcodelib.

barnhill avatar barnhill commented on July 20, 2024

ean-label

from barcodelib.

AmineMessabhia avatar AmineMessabhia commented on July 20, 2024

Hey @barnhill,
First of all, you're awesome!! I found your library and I was soooo relieved i did.
I have version 2.2.2 of the library, but this is how my Barcode EAN-13 shows:

image

Also, here is my code for it:

`BarcodeLib.Barcode b = new BarcodeLib.Barcode("6132502917419", BarcodeLib.TYPE.EAN13);

b.IncludeLabel = true;

System.Drawing.Image img = b.Encode(BarcodeLib.TYPE.EAN13, "6132502917419", Color.Black, Color.White, 1160, 480);`

Can you please tell me what am i doing wrong? cuz i'm trying to get the first digit on the left of the first two lines.

Thank you very much!

from barcodelib.

barnhill avatar barnhill commented on July 20, 2024

Im pretty sure I moved this below the starting lines. You would need to modify the label method for EAN13 if you want to move it back on the left side of the lines. Its going to require calculation of the width of the text since you have to start drawing the barcode on the right side of that.

from barcodelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.