c# - Generating IDAutomationHC39M barcode is generating well but need to remove value -


hi using below code , bar code generating how can remove text written down label.

 public void generatebarcode(string id)     {         int w = id.length * 55;         bitmap obitmap = new bitmap(w, 100);         graphics ographics = graphics.fromimage(obitmap);         font ofont = new font("idautomationhc39m", 18);         pointf opoint = new pointf(2f, 2f);         solidbrush obrushwrite = new solidbrush(color.black);         solidbrush obrush = new solidbrush(color.white);         ographics.fillrectangle(obrush, 0, 0, w, 100);         ographics.drawstring("*" + id + "*", ofont, obrushwrite, opoint);         system.web.ui.webcontrols.image imgbarcode = new system.web.ui.webcontrols.image();          using (system.io.filestream fs = system.io.file.open(server.mappath("~/img/barcodes/") + id + ".jpg", filemode.create))         {             obitmap.save(fs, system.drawing.imaging.imageformat.jpeg);          }         obitmap.dispose();         imgbarcode.imageurl = "~/img/barcodes/" + id + ".jpg"; } 

my bar code generating below. here need remove bar code text 76

enter image description here

according this, font need use without text "idautomationc39m". unfortunately, that's not in free version.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -