imageruby 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 0.2.5 fixed handling of encoding for string containing binary data
2
+
1
3
  0.2.4 fixed read of pixel data on alpha combinations
2
4
 
3
5
  fixed Color#inspect
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rdoc/task'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'imageruby'
9
- s.version = '0.2.4'
9
+ s.version = '0.2.5'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -71,7 +71,7 @@ module ImageRuby
71
71
  @array[pointindex] = color.b.chr
72
72
 
73
73
  if color.a != 255 then
74
- @alpha = "\xff"*(@height * @width) unless @alpha
74
+ @alpha = 255.chr*(@height * @width) unless @alpha
75
75
  @alpha[index] = color.a.chr
76
76
  end
77
77
 
@@ -101,7 +101,7 @@ module ImageRuby
101
101
  # bitmap.pixel_data[(12)*bitmap.width+11] # the alpha value at x=12, y=11
102
102
  # bitmap.pixel_data[(12)*bitmap.width+12] # the alpha value at x=12, y=12
103
103
  def alpha_data
104
- @alpha = "\xff"*(@height * @width) unless @alpha
104
+ @alpha = 255.chr*(@height * @width) unless @alpha
105
105
  @alpha
106
106
  end
107
107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imageruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-10 00:00:00.000000000 Z
12
+ date: 2013-09-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: robertodarioseminara@gmail.com
@@ -18,11 +18,21 @@ extensions: []
18
18
  extra_rdoc_files:
19
19
  - README
20
20
  files:
21
+ - examples/gradients.bmp
21
22
  - examples/gradient.rb
22
23
  - examples/mask_color.rb
24
+ - examples/sample1.bmp
23
25
  - examples/colors.rb
26
+ - examples/with_mask.bmp
27
+ - examples/gradient2.bmp
24
28
  - examples/black.rb
29
+ - examples/sample2.bmp
30
+ - examples/gradient1.bmp
31
+ - examples/without_mask.bmp
25
32
  - examples/alpha.rb
33
+ - examples/colors.bmp
34
+ - examples/gradient0.bmp
35
+ - examples/black.bmp
26
36
  - lib/imageruby/pureruby.rb
27
37
  - lib/imageruby/decoder.rb
28
38
  - lib/imageruby/encoder.rb