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 +2 -0
- data/Rakefile +1 -1
- data/examples/black.bmp +0 -0
- data/examples/colors.bmp +0 -0
- data/examples/gradient0.bmp +0 -0
- data/examples/gradient1.bmp +0 -0
- data/examples/gradient2.bmp +0 -0
- data/examples/gradients.bmp +0 -0
- data/examples/sample1.bmp +0 -0
- data/examples/sample2.bmp +0 -0
- data/examples/with_mask.bmp +0 -0
- data/examples/without_mask.bmp +0 -0
- data/lib/imageruby/bitmap/rbbitmap.rb +2 -2
- metadata +12 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/examples/black.bmp
ADDED
Binary file
|
data/examples/colors.bmp
ADDED
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 =
|
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 =
|
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
|
+
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-
|
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
|