3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/asposeimagingjava/images/datarecoverytiffimages.rb', line 3
def initialize()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
load_options = Rjb::import('com.aspose.imaging.LoadOptions').new
load_options.setDataRecoveryMode(Rjb::import('com.aspose.imaging.DataRecoveryMode').ConsistentRecover)
load_options.setDataBackgroundColor(Rjb::import('java.awt.Color').getRed())
image = Rjb::import('com.aspose.imaging.Image').load(data_dir + "multipage.tiff", load_options)
end
|