Skip to content

Instantly share code, notes, and snippets.

@MichaelAstreiko
Created March 29, 2012 18:22
Show Gist options
  • Save MichaelAstreiko/2241528 to your computer and use it in GitHub Desktop.
Save MichaelAstreiko/2241528 to your computer and use it in GitHub Desktop.
BarCode format
BarcodeFormat format = BarcodeFormat.valueOf(params.format)
File file = File.createTempFile("temp-barcode", "png")
barCodeRendererService.renderImageToFile(file, params.data, getSize(params.width), getSize(params.height), format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment