3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/asposebarcodejava/BarcodeImage/rotateimage.rb', line 3
def initialize()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
bb = Rjb::import('com.aspose.barcode.BarCodeBuilder').new
bb.setCodeText("12345678")
bb.setRotationAngleF(180)
bb.setSymbologyType(Rjb::import('com.aspose.barcode.Symbology').Code39Extended)
bb.save(data_dir + "Rotate.jpg")
puts "Done with image rotation, please check the output file."
end
|