barcode

How to generate Code39 barcodes in vb.net

可紊 提交于 2019-11-27 00:48:27
问题 I want to create Code39 encoded barcodes from my application. I know I can use a font for this, but I'd prefer not to as I'd have to register the font on the server and I've had some pretty bad experiences with that. An example of what I've produced after asking this question is in the answers 回答1: This is my current codebehind, with lots of comments: Option Explicit On Option Strict On Imports System.Drawing Imports System.Drawing.Imaging Imports System.Drawing.Bitmap Imports System.Drawing

BarCode Image Generator in Java

流过昼夜 提交于 2019-11-26 23:59:10
How can I create a barcode image in Java? I need something that will allow me to enter a number and produce the corresponding barcode image. Is there a free library available for this type of task? iText is a great Java PDF library. They also have an API for creating barcodes. You don't need to be creating a PDF to use it. This page has the details on creating barcodes . Here is an example from that site: BarcodeEAN codeEAN = new BarcodeEAN(); codeEAN.setCodeType(codeEAN.EAN13); codeEAN.setCode("9780201615883"); Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null); The biggest thing

QR code (2D barcode) coding and decoding algorithms? [closed]

倾然丶 夕夏残阳落幕 提交于 2019-11-26 23:49:48
问题 Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code. It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available... 回答1: I have a colleague who worked on ZXing ("Zebra Crossing"). That's got a fair variety of platform support. 回答2: QR Code Demystified - Part 1 QR Code Demystified - Part 2 QR Code Demystified - Part 3 QR Code Demystified - Part 4 QR Code Demystified -

How to fixed keylistener on JTextField?

微笑、不失礼 提交于 2019-11-26 23:41:25
问题 I have a Java swing application, so I have a simple Text box with KeyListener and I have a barcode reader (USB), when the barcode reader write the number on this textbox, I chek the code and I process it. But I have the problem the code can have from 4 to 13 digits. So I have this code public class KeyListenerCodice implements KeyListener{ public void keyPressed(KeyEvent click) { } public void keyReleased(KeyEvent keyEvent) { printIt("Released", keyEvent); } public void keyTyped(KeyEvent

Read barcodes from input-event (linux, c)

℡╲_俬逩灬. 提交于 2019-11-26 23:17:58
问题 I have a small program that read barcodes from /dev/input/event4. This is the code: #include <sys/file.h> #include <stdio.h> #include <string.h> #include <linux/input.h> int main (int argc, char *argv[]) { struct input_event ev; int fd, rd; //Open Device if ((fd = open ("/dev/input/event4", O_RDONLY|O_NONBLOCK)) == -1){ printf ("not a vaild device.\n"); return -1; } while (1){ memset((void*)&ev, 0, sizeof(ev)); rd = read (fd, (void*)&ev, sizeof(ev)); if (rd <= 0){ printf ("rd: %d\n", rd);

How can I generate a barcode from a string in Swift?

依然范特西╮ 提交于 2019-11-26 22:36:56
问题 I am a new iOS developer. I was wondering how can I generate a barcode in Swift. I have the code already, there are multiple resources from where to learn how to read a barcode, but I didn't find any that talks about generating one from a string. Thanks a lot! P.S. I know there is a similar question about this, but it's for Objective-C. I don't know Obj-C and I find it difficult coming from .NET. 回答1: You could use a CoreImage ( import CoreImage ) filter to do that! class Barcode { class func

how does “com.google.zxing.client.android.SCAN” work in android?

南笙酒味 提交于 2019-11-26 22:07:05
问题 I developed a BarcodeScanner app with ZXING library. for that I downloaded the complete library and added it to my proj and called an Intent with URI:"com.myproject.vinscan.client.android.SCAN". but later I found that, instead of downloading and including all packages of ZXING into our proj, we can just use the URI for Inetnt as "com.google.zxing.client.android.SCAN". My doubt is, how is it working without the libraries. It is working even in offline mode(without WIFI/GPRS). are the libraries

How to capture whole Barcode value on Winform without using TextChanged event?

岁酱吖の 提交于 2019-11-26 21:52:16
问题 When a barcode is scanned on form1, I make a call to database to get the item for this barcode and open form2 with pre-populated data. If I use text changed event then it makes as many times as numbers in one barcode. I cannot check length of the barcode as it may be different each time. which event I should use to make only one call when Barcode is scanned? I tried TextChanged, KeyPress, KeyDown events but they all are being called multiple times. private void txt_Barcode_TextChanged(object

Google Vision barcode library not found

醉酒当歌 提交于 2019-11-26 21:14:12
问题 I'm trying to use the new feature in Google Play Services (Vision) to add QR code scanning to my application. But when I run my app I get this: I/Vision﹕ Supported ABIS: [armeabi-v7a, armeabi] D/Vision﹕ Library not found: /data/data/com.google.android.gms/files/com.google.android.gms.vision/barcode/libs/armeabi-v7a/libbarhopper.so I/Vision﹕ Requesting barcode detector download. I have declared barcode dependency as per tutorial: <meta-data android:name="com.google.android.gms.vision

QR Code encoding and decoding using zxing

末鹿安然 提交于 2019-11-26 19:29:35
Okay, so I'm going to take the off chance that someone here has used zxing before. I'm developing a Java application, and one of the things it needs to do is encode a byte array of data into a QR Code and then decode it at a later time. Here's an example of what my encoder looks like: byte[] b = {0x48, 0x45, 0x4C, 0x4C, 0x4F}; //convert the byte array into a UTF-8 string String data; try { data = new String(b, "UTF8"); } catch (UnsupportedEncodingException e) { //the program shouldn't be able to get here return; } //get a byte matrix for the data ByteMatrix matrix; com.google.zxing.Writer