3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/asposebarcodejava/BarcodeImage/setbarcodeimageunitsize.rb', line 3
def initialize()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
symbology = Rjb::import('com.aspose.barcode.Symbology')
bb = Rjb::import('com.aspose.barcode.BarCodeBuilder').new("12345678", symbology.Code128)
bb.setGraphicsUnit(Rjb::import('com.aspose.barcode.GraphicsUnit').Point)
bb.setBarHeight(3.0)
bb.save(data_dir + "SetBarcodeImageUnitSize.jpg")
puts "Set Barcode Image Unit Size, please check the output file."
end
|