Control BarCode Image Quality in Ruby

Aspose.BarCode - Control Barcode Image Quality

To Control Barcode Image Quality using Aspose.Barcode Java for Ruby, simply invoke SetBarcodeImageQuality module. Here you can see example code.

Ruby Code

 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

\# Instantiate barcode object

bb = Rjb::import('com.aspose.barcode.BarCodeBuilder').new

\# Set the code text of the barcode


\# Set the graphics drawing hint to be Anti Alias


\# Set the symbology type to code39

bb.setSymbologyType(Rjb::import('com.aspose.barcode.Symbology').Code39Extended) + "SetBarcodeImageQuality.jpg")

\# Display Status.

puts "Set Barcode Image Quality, please check the output file."

Download Running Code

Download Control Barcode Image Quality (Aspose.BarCode) from any of the below mentioned social coding sites: