graster 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/graster.rb +4 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/graster.rb
CHANGED
@@ -73,9 +73,11 @@ class Graster
|
|
73
73
|
|
74
74
|
if @image
|
75
75
|
2.times {|i| @config[:tile_size][i] ||= @image.size[i]*@scale[i] }
|
76
|
-
@tile_interval =
|
77
|
-
|
76
|
+
@tile_interval = []
|
77
|
+
2.times {|i|
|
78
|
+
@tile_interval << @config[:tile_size][i] + @config[:tile_spacing][i]
|
78
79
|
}
|
80
|
+
@tile_interval
|
79
81
|
end
|
80
82
|
|
81
83
|
@on_range = Range.new Image.f_to_pix(@config[:on_range].first),
|