andries Posted September 14, 2010 Posted September 14, 2010 For what it is worth, here is a code to create barcodes with ScriptMaster. It uses the barbecue library which can be downloaded here: http://barbecue.sourceforge.net/ Add the library to your jar list and there you go! import java.io.File; import net.sourceforge.barbecue.Barcode; import net.sourceforge.barbecue.BarcodeFactory; import net.sourceforge.barbecue.BarcodeImageHandler; Barcode barcode = BarcodeFactory.createInt2of5(dataString); //Uncomment those lines to save the barcode as a png //File f = new File(destPath); //BarcodeImageHandler.savePNG(barcode, f); //Uncomment the following line to return the barcode as an image to FileMaker BarcodeImageHandler.getImage(barcode); 1
Jesse Barnum Posted September 14, 2010 Posted September 14, 2010 Thanks for posting, Andries! Do you mind if I add that to the ScriptMaster.fp7 file?
andries Posted September 14, 2010 Author Posted September 14, 2010 (edited) Of course not -) But this library actually allows you to create all kind of barcodes, maybe it is better to include the code39 barcode in the scriptmaster module as this is considered as the most standard barcode. Edited September 14, 2010 by Guest
john renfrew Posted October 10, 2010 Posted October 10, 2010 Jesse A bit of extension to the above which gives more control of size and resolution // // import net.sourceforge.barbecue.* import java.awt.* import java.awt.image.* // change this to suit font = new Font( "Arial" , Font.BOLD , 18) barcode = BarcodeFactory.createCode39(barcode, true) gw = barcode.getWidth() // change this to suit if you want higher, default 50 //barcode.setBarHeight(70) // this sets DPI barcode.setResolution(200) barcode.setFont(font) gh = barcode.getHeight() // change this if you want a coloured background //image = new BufferedImage(t, s, BufferedImage.TYPE_INT_RGB) image = new BufferedImage(gw, gh, BufferedImage.TYPE_BYTE_GRAY) Graphics2D g2 = image.getGraphics() // default is black so draw a white box first // change type to INT_RGB if you want a coloured background g2.setColor(Color.white) g2.fillRect(0,0,gw,gh) barcode.draw(g2, 5, 0) return image
Newbies fdsrfew Posted January 18, 2013 Newbies Posted January 18, 2013 What I am using now is this BIRT QR Code barcode generator. It's good. Share with you all.
Newbies WardABCD Posted February 1, 2013 Newbies Posted February 1, 2013 Tanks for the code, useful. and I like to use this simple code in this online linear barcoding site.
Newbies youlink Posted January 13, 2014 Newbies Posted January 13, 2014 here i'd like to share some codes with you to help you create EAN-8 in project. Dim reImage As REImage = REFile.OpenImageFile("c:/Sample.png", New PNGDecoder())Dim barcode As New Linear()'create a barcode barcode.Type = BarcodeType.EAN8'select barcode type barcode.Data = "7777777"'Enter a 7-digit data string barcode.X = 1F'set bar width barcode.Y = 60F'set bar height barcode.Resolution = 96'set resolution barcode.Rotate = Rotate.Rotate0'set rotate barcode.DrawBarcode(reImage, 0, 0)'draw barcode on REImage with location x and y REFile.SaveImageFile(reImage, "c:/ean8.png", New PNGEncoder())
Newbies Derek007 Posted June 9, 2014 Newbies Posted June 9, 2014 Does your barcode generator support java qr code generation, this guide says you can adjust many QR Code properties like size, etc. I'd like to have a try if your program can do that. Regards, Derek
Newbies henryrice Posted June 10, 2014 Newbies Posted June 10, 2014 Hi, Barcode maker or generator is used to design professional barcode on Mac. This is basically used for business users which create number of colorful barcode in own style. This is used to generate and print barcode levels, tags on your Mac without having any technical knowledge. So use Barcode maker for Mac which is the bedst software to create or generate barcode labels.
Recommended Posts
This topic is 3831 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now