rmagick4j 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/History.txt +84 -0
  2. data/LICENSE.txt +9 -0
  3. data/Manifest.txt +142 -0
  4. data/README.txt +25 -0
  5. data/Rakefile +109 -0
  6. data/lib/RMagick.rb +1861 -0
  7. data/lib/jhlabs-filters.jar +0 -0
  8. data/lib/magick4j.jar +0 -0
  9. data/lib/rmagick4j/constants.rb +21 -0
  10. data/lib/rmagick4j/draw.rb +86 -0
  11. data/lib/rmagick4j/enum.rb +120 -0
  12. data/lib/rmagick4j/gradient_fill.rb +14 -0
  13. data/lib/rmagick4j/image.rb +289 -0
  14. data/lib/rmagick4j/image_list.rb +21 -0
  15. data/lib/rmagick4j/pixel.rb +170 -0
  16. data/lib/rmagick4j/rmagick4j.rb +19 -0
  17. data/lib/rmagick4j/texture_fill.rb +14 -0
  18. data/lib/rmagick4j/type_metric.rb +8 -0
  19. data/lib/rmagick4j/version.rb +5 -0
  20. data/lib/rvg/clippath.rb +48 -0
  21. data/lib/rvg/container.rb +131 -0
  22. data/lib/rvg/deep_equal.rb +56 -0
  23. data/lib/rvg/describable.rb +53 -0
  24. data/lib/rvg/embellishable.rb +417 -0
  25. data/lib/rvg/misc.rb +739 -0
  26. data/lib/rvg/paint.rb +55 -0
  27. data/lib/rvg/pathdata.rb +131 -0
  28. data/lib/rvg/rvg.rb +283 -0
  29. data/lib/rvg/stretchable.rb +168 -0
  30. data/lib/rvg/stylable.rb +118 -0
  31. data/lib/rvg/text.rb +187 -0
  32. data/lib/rvg/transformable.rb +133 -0
  33. data/lib/rvg/units.rb +66 -0
  34. data/lib/svgsalamander.jar +0 -0
  35. data/test/RMagickTestSuite.rb +129 -0
  36. data/test/eyetests/bullseye.rb +150 -0
  37. data/test/eyetests/tests/draw_arc_basic.rb +16 -0
  38. data/test/eyetests/tests/draw_circle_affine.rb +19 -0
  39. data/test/eyetests/tests/draw_circle_basic.rb +16 -0
  40. data/test/eyetests/tests/draw_ellipse_affine.rb +19 -0
  41. data/test/eyetests/tests/draw_ellipse_basic.rb +16 -0
  42. data/test/eyetests/tests/draw_line_affine.rb +24 -0
  43. data/test/eyetests/tests/draw_line_basic.rb +20 -0
  44. data/test/eyetests/tests/draw_pattern_1.rb +35 -0
  45. data/test/eyetests/tests/draw_polygon_affine.rb +21 -0
  46. data/test/eyetests/tests/draw_polygon_basic.rb +19 -0
  47. data/test/eyetests/tests/draw_polyline_affine.rb +19 -0
  48. data/test/eyetests/tests/draw_polyline_basic.rb +18 -0
  49. data/test/eyetests/tests/draw_rectangle_affine.rb +16 -0
  50. data/test/eyetests/tests/draw_rectangle_basic.rb +16 -0
  51. data/test/eyetests/tests/draw_rmagick_test_01.rb +35 -0
  52. data/test/eyetests/tests/draw_rmagick_test_02.rb +40 -0
  53. data/test/eyetests/tests/draw_rmagick_test_03.rb +17 -0
  54. data/test/eyetests/tests/draw_rmagick_test_04.rb +21 -0
  55. data/test/eyetests/tests/draw_roundrectangle_affine.rb +19 -0
  56. data/test/eyetests/tests/draw_roundrectangle_basic.rb +16 -0
  57. data/test/eyetests/tests/gradient_fill_horizontal_diagonal_fill.rb +9 -0
  58. data/test/eyetests/tests/gradient_fill_horizontal_fill.rb +9 -0
  59. data/test/eyetests/tests/gradient_fill_point_fill.rb +9 -0
  60. data/test/eyetests/tests/gradient_fill_vertical_diagonal_fill.rb +9 -0
  61. data/test/eyetests/tests/gradient_fill_vertical_fill.rb +9 -0
  62. data/test/eyetests/tests/gruff_accumulator_bar.rb +29 -0
  63. data/test/eyetests/tests/gruff_area_1.rb +16 -0
  64. data/test/eyetests/tests/gruff_area_2.rb +27 -0
  65. data/test/eyetests/tests/gruff_bar_1.rb +29 -0
  66. data/test/eyetests/tests/gruff_bar_2.rb +19 -0
  67. data/test/eyetests/tests/gruff_line_1.rb +13 -0
  68. data/test/eyetests/tests/gruff_line_2.rb +20 -0
  69. data/test/eyetests/tests/gruff_net_1.rb +16 -0
  70. data/test/eyetests/tests/gruff_net_2.rb +16 -0
  71. data/test/eyetests/tests/gruff_pie_1.rb +21 -0
  72. data/test/eyetests/tests/gruff_pie_2.rb +22 -0
  73. data/test/eyetests/tests/gruff_scene_1.rb +14 -0
  74. data/test/eyetests/tests/gruff_scene_2.rb +14 -0
  75. data/test/eyetests/tests/gruff_sidebar.rb +32 -0
  76. data/test/eyetests/tests/gruff_sidestacked_bar_1.rb +26 -0
  77. data/test/eyetests/tests/gruff_sidestacked_bar_2.rb +26 -0
  78. data/test/eyetests/tests/gruff_spider_1.rb +22 -0
  79. data/test/eyetests/tests/gruff_spider_2.rb +15 -0
  80. data/test/eyetests/tests/gruff_stacked_bar_1.rb +23 -0
  81. data/test/eyetests/tests/gruff_stacked_bar_2.rb +26 -0
  82. data/test/eyetests/tests/hatch_fill.rb +9 -0
  83. data/test/eyetests/tests/image_list_flatten_images.rb +15 -0
  84. data/test/eyetests/tests/new_image.rb +24 -0
  85. data/test/eyetests/tests/path_a_command_01.rb +16 -0
  86. data/test/eyetests/tests/path_a_command_02.rb +19 -0
  87. data/test/eyetests/tests/path_c_command_01.rb +16 -0
  88. data/test/eyetests/tests/path_c_command_02.rb +16 -0
  89. data/test/eyetests/tests/path_complex_01.rb +16 -0
  90. data/test/eyetests/tests/path_espiral_01.rb +28 -0
  91. data/test/eyetests/tests/path_h_command_01.rb +16 -0
  92. data/test/eyetests/tests/path_h_command_02.rb +16 -0
  93. data/test/eyetests/tests/path_l_command_01.rb +16 -0
  94. data/test/eyetests/tests/path_l_command_02.rb +16 -0
  95. data/test/eyetests/tests/path_m_command_01.rb +16 -0
  96. data/test/eyetests/tests/path_m_command_02.rb +16 -0
  97. data/test/eyetests/tests/path_m_command_03.rb +16 -0
  98. data/test/eyetests/tests/path_q_command_01.rb +16 -0
  99. data/test/eyetests/tests/path_q_command_02.rb +16 -0
  100. data/test/eyetests/tests/path_q_command_03.rb +25 -0
  101. data/test/eyetests/tests/path_s_command_01.rb +16 -0
  102. data/test/eyetests/tests/path_s_command_02.rb +16 -0
  103. data/test/eyetests/tests/path_star_01.rb +16 -0
  104. data/test/eyetests/tests/path_t_command_01.rb +16 -0
  105. data/test/eyetests/tests/path_t_command_02.rb +16 -0
  106. data/test/eyetests/tests/path_v_command_01.rb +16 -0
  107. data/test/eyetests/tests/path_v_command_02.rb +16 -0
  108. data/test/eyetests/tests/store_pixel_smiley.rb +123 -0
  109. data/test/eyetests/tests/texture_fill.rb +11 -0
  110. data/test/gruff_tests/test/gruff_test_case.rb +120 -0
  111. data/test/gruff_tests/test/monkey_gruff.rb +7 -0
  112. data/test/gruff_tests/test/test_accumulator_bar.rb +50 -0
  113. data/test/gruff_tests/test/test_area.rb +134 -0
  114. data/test/gruff_tests/test/test_bar.rb +283 -0
  115. data/test/gruff_tests/test/test_base.rb +8 -0
  116. data/test/gruff_tests/test/test_bullet.rb +26 -0
  117. data/test/gruff_tests/test/test_legend.rb +71 -0
  118. data/test/gruff_tests/test/test_line.rb +493 -0
  119. data/test/gruff_tests/test/test_mini_bar.rb +32 -0
  120. data/test/gruff_tests/test/test_mini_pie.rb +20 -0
  121. data/test/gruff_tests/test/test_mini_side_bar.rb +37 -0
  122. data/test/gruff_tests/test/test_net.rb +230 -0
  123. data/test/gruff_tests/test/test_photo.rb +41 -0
  124. data/test/gruff_tests/test/test_pie.rb +154 -0
  125. data/test/gruff_tests/test/test_scene.rb +100 -0
  126. data/test/gruff_tests/test/test_side_bar.rb +12 -0
  127. data/test/gruff_tests/test/test_sidestacked_bar.rb +89 -0
  128. data/test/gruff_tests/test/test_spider.rb +216 -0
  129. data/test/gruff_tests/test/test_stacked_bar.rb +52 -0
  130. data/test/images/clown.jpg +0 -0
  131. data/test/images/texture.jpg +0 -0
  132. data/test/implemented_methods.rb +18 -0
  133. data/test/spec/draw_spec.rb +24 -0
  134. data/test/spec/image_constants.rb +76 -0
  135. data/test/spec/image_spec.rb +23 -0
  136. data/test/spec/pixel_spec.rb +84 -0
  137. data/test/spec/stories/geometry_runner.rb +13 -0
  138. data/test/spec/stories/geometry_steps.rb +24 -0
  139. data/test/spec/stories/geometry_story.rb +116 -0
  140. data/test/spec/stories/image_filling_runner.rb +13 -0
  141. data/test/spec/stories/image_filling_steps.rb +64 -0
  142. data/test/spec/stories/image_filling_story.rb +41 -0
  143. metadata +215 -0
@@ -0,0 +1,41 @@
1
+ Story: filling a background
2
+ As a developer
3
+ I want to fill an empty image with a GradientFill
4
+ So that I can have a beautiful gradient in it.
5
+
6
+ # Vertical line (GradientFill)
7
+ Scenario: the starting line is the left border
8
+ Given a new GradientFill with starting line 0 0 0 100 with start color: 900 and end color: 000
9
+ When filling a new image sized 300 100 with the Fill object
10
+ Then the new image should not be nil
11
+
12
+ # Radial gradient (GradientFill)
13
+ Scenario: the starting point is the 0 0
14
+ Given a new GradientFill with starting point 0 0 with start color: 900 and end color: 000
15
+ When filling a new image sized 300 100 with the Fill object
16
+ Then the new image should not be nil
17
+
18
+ # Horizontal line (GradientFill)
19
+ Scenario: the starting line is an horizontal one
20
+ Given a new GradientFill with starting line 0 150 200 150 with start color: 900 and end color: 000
21
+ When filling a new image sized 300 300 with the Fill object
22
+ Then the new image should not be nil
23
+
24
+ # Horizontal_diagonal line (GradientFill)
25
+ Scenario: the starting line is a horizontal_diagonal one.
26
+ Given a new GradientFill with starting line 100 0 200 300 with start color: 900 and end color: 000
27
+ When filling a new image sized 300 300 with the Fill object
28
+ Then the new image should not be nil
29
+
30
+ # Vertical_diagonal line (GradientFill)
31
+ Scenario: the starting line is a vertical_diagonal one.
32
+ Given a new GradientFill with starting line 0 100 300 200 with start color: 900 and end color: 000
33
+ When filling a new image sized 300 300 with the Fill object
34
+ Then the new image should not be nil
35
+
36
+ # Texture filling (TextureFill)
37
+ Scenario: filling an image with a texture.
38
+ Given a new Image texture with extension jpg
39
+ And a new TextureFill from image
40
+ When filling a new image sized 300 300 with the Fill object
41
+ Then the new image should not be nil
metadata ADDED
@@ -0,0 +1,215 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rmagick4j
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.5
5
+ platform: ruby
6
+ authors:
7
+ - "Thomas Palmer, Sergio Rodr\xC3\xADguez Arbeo and Thomas Enebo"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-07-09 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: RMagick is a Ruby binding to ImageMagick and GraphicsMagick. RMagick4J implements ImageMagick functionality and the C portions of RMagick for use with JRuby.
17
+ email: serabe@gmail.com, tom.enebo@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - History.txt
24
+ - Manifest.txt
25
+ - README.txt
26
+ - LICENSE.txt
27
+ files:
28
+ - History.txt
29
+ - Manifest.txt
30
+ - README.txt
31
+ - Rakefile
32
+ - LICENSE.txt
33
+ - lib/RMagick.rb
34
+ - lib/rmagick4j/constants.rb
35
+ - lib/rmagick4j/draw.rb
36
+ - lib/rmagick4j/enum.rb
37
+ - lib/rmagick4j/gradient_fill.rb
38
+ - lib/rmagick4j/image.rb
39
+ - lib/rmagick4j/image_list.rb
40
+ - lib/rmagick4j/pixel.rb
41
+ - lib/rmagick4j/rmagick4j.rb
42
+ - lib/rmagick4j/texture_fill.rb
43
+ - lib/rmagick4j/type_metric.rb
44
+ - lib/rmagick4j/version.rb
45
+ - lib/rvg/clippath.rb
46
+ - lib/rvg/container.rb
47
+ - lib/rvg/deep_equal.rb
48
+ - lib/rvg/describable.rb
49
+ - lib/rvg/embellishable.rb
50
+ - lib/rvg/misc.rb
51
+ - lib/rvg/paint.rb
52
+ - lib/rvg/pathdata.rb
53
+ - lib/rvg/rvg.rb
54
+ - lib/rvg/stretchable.rb
55
+ - lib/rvg/stylable.rb
56
+ - lib/rvg/text.rb
57
+ - lib/rvg/transformable.rb
58
+ - lib/rvg/units.rb
59
+ - lib/jhlabs-filters.jar
60
+ - lib/magick4j.jar
61
+ - lib/svgsalamander.jar
62
+ - test/eyetests/bullseye.rb
63
+ - test/eyetests/tests/draw_arc_basic.rb
64
+ - test/eyetests/tests/draw_circle_affine.rb
65
+ - test/eyetests/tests/draw_circle_basic.rb
66
+ - test/eyetests/tests/draw_ellipse_affine.rb
67
+ - test/eyetests/tests/draw_ellipse_basic.rb
68
+ - test/eyetests/tests/draw_line_affine.rb
69
+ - test/eyetests/tests/draw_line_basic.rb
70
+ - test/eyetests/tests/draw_pattern_1.rb
71
+ - test/eyetests/tests/draw_polygon_affine.rb
72
+ - test/eyetests/tests/draw_polygon_basic.rb
73
+ - test/eyetests/tests/draw_polyline_affine.rb
74
+ - test/eyetests/tests/draw_polyline_basic.rb
75
+ - test/eyetests/tests/draw_rectangle_affine.rb
76
+ - test/eyetests/tests/draw_rectangle_basic.rb
77
+ - test/eyetests/tests/draw_rmagick_test_01.rb
78
+ - test/eyetests/tests/draw_rmagick_test_02.rb
79
+ - test/eyetests/tests/draw_rmagick_test_03.rb
80
+ - test/eyetests/tests/draw_rmagick_test_04.rb
81
+ - test/eyetests/tests/draw_roundrectangle_affine.rb
82
+ - test/eyetests/tests/draw_roundrectangle_basic.rb
83
+ - test/eyetests/tests/gradient_fill_horizontal_diagonal_fill.rb
84
+ - test/eyetests/tests/gradient_fill_horizontal_fill.rb
85
+ - test/eyetests/tests/gradient_fill_point_fill.rb
86
+ - test/eyetests/tests/gradient_fill_vertical_diagonal_fill.rb
87
+ - test/eyetests/tests/gradient_fill_vertical_fill.rb
88
+ - test/eyetests/tests/gruff_accumulator_bar.rb
89
+ - test/eyetests/tests/gruff_area_1.rb
90
+ - test/eyetests/tests/gruff_area_2.rb
91
+ - test/eyetests/tests/gruff_bar_1.rb
92
+ - test/eyetests/tests/gruff_bar_2.rb
93
+ - test/eyetests/tests/gruff_line_1.rb
94
+ - test/eyetests/tests/gruff_line_2.rb
95
+ - test/eyetests/tests/gruff_net_1.rb
96
+ - test/eyetests/tests/gruff_net_2.rb
97
+ - test/eyetests/tests/gruff_pie_1.rb
98
+ - test/eyetests/tests/gruff_pie_2.rb
99
+ - test/eyetests/tests/gruff_scene_1.rb
100
+ - test/eyetests/tests/gruff_scene_2.rb
101
+ - test/eyetests/tests/gruff_sidebar.rb
102
+ - test/eyetests/tests/gruff_sidestacked_bar_1.rb
103
+ - test/eyetests/tests/gruff_sidestacked_bar_2.rb
104
+ - test/eyetests/tests/gruff_spider_1.rb
105
+ - test/eyetests/tests/gruff_spider_2.rb
106
+ - test/eyetests/tests/gruff_stacked_bar_1.rb
107
+ - test/eyetests/tests/gruff_stacked_bar_2.rb
108
+ - test/eyetests/tests/hatch_fill.rb
109
+ - test/eyetests/tests/image_list_flatten_images.rb
110
+ - test/eyetests/tests/new_image.rb
111
+ - test/eyetests/tests/path_a_command_01.rb
112
+ - test/eyetests/tests/path_a_command_02.rb
113
+ - test/eyetests/tests/path_c_command_01.rb
114
+ - test/eyetests/tests/path_c_command_02.rb
115
+ - test/eyetests/tests/path_complex_01.rb
116
+ - test/eyetests/tests/path_espiral_01.rb
117
+ - test/eyetests/tests/path_h_command_01.rb
118
+ - test/eyetests/tests/path_h_command_02.rb
119
+ - test/eyetests/tests/path_l_command_01.rb
120
+ - test/eyetests/tests/path_l_command_02.rb
121
+ - test/eyetests/tests/path_m_command_01.rb
122
+ - test/eyetests/tests/path_m_command_02.rb
123
+ - test/eyetests/tests/path_m_command_03.rb
124
+ - test/eyetests/tests/path_q_command_01.rb
125
+ - test/eyetests/tests/path_q_command_02.rb
126
+ - test/eyetests/tests/path_q_command_03.rb
127
+ - test/eyetests/tests/path_s_command_01.rb
128
+ - test/eyetests/tests/path_s_command_02.rb
129
+ - test/eyetests/tests/path_star_01.rb
130
+ - test/eyetests/tests/path_t_command_01.rb
131
+ - test/eyetests/tests/path_t_command_02.rb
132
+ - test/eyetests/tests/path_v_command_01.rb
133
+ - test/eyetests/tests/path_v_command_02.rb
134
+ - test/eyetests/tests/store_pixel_smiley.rb
135
+ - test/eyetests/tests/texture_fill.rb
136
+ - test/gruff_tests/test/gruff_test_case.rb
137
+ - test/gruff_tests/test/monkey_gruff.rb
138
+ - test/gruff_tests/test/test_accumulator_bar.rb
139
+ - test/gruff_tests/test/test_area.rb
140
+ - test/gruff_tests/test/test_bar.rb
141
+ - test/gruff_tests/test/test_base.rb
142
+ - test/gruff_tests/test/test_bullet.rb
143
+ - test/gruff_tests/test/test_legend.rb
144
+ - test/gruff_tests/test/test_line.rb
145
+ - test/gruff_tests/test/test_mini_bar.rb
146
+ - test/gruff_tests/test/test_mini_pie.rb
147
+ - test/gruff_tests/test/test_mini_side_bar.rb
148
+ - test/gruff_tests/test/test_net.rb
149
+ - test/gruff_tests/test/test_photo.rb
150
+ - test/gruff_tests/test/test_pie.rb
151
+ - test/gruff_tests/test/test_scene.rb
152
+ - test/gruff_tests/test/test_side_bar.rb
153
+ - test/gruff_tests/test/test_sidestacked_bar.rb
154
+ - test/gruff_tests/test/test_spider.rb
155
+ - test/gruff_tests/test/test_stacked_bar.rb
156
+ - test/implemented_methods.rb
157
+ - test/RMagickTestSuite.rb
158
+ - test/spec/draw_spec.rb
159
+ - test/spec/image_constants.rb
160
+ - test/spec/image_spec.rb
161
+ - test/spec/pixel_spec.rb
162
+ - test/spec/stories/geometry_runner.rb
163
+ - test/spec/stories/geometry_steps.rb
164
+ - test/spec/stories/geometry_story.rb
165
+ - test/spec/stories/image_filling_runner.rb
166
+ - test/spec/stories/image_filling_steps.rb
167
+ - test/spec/stories/image_filling_story.rb
168
+ - test/images/clown.jpg
169
+ - test/images/texture.jpg
170
+ has_rdoc: true
171
+ homepage: http://jruby-extras.rubyforge.org/rmagick4j
172
+ post_install_message:
173
+ rdoc_options:
174
+ - --main
175
+ - README.txt
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: "0"
183
+ version:
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: "0"
189
+ version:
190
+ requirements: []
191
+
192
+ rubyforge_project: jruby-extras
193
+ rubygems_version: 1.0.1
194
+ signing_key:
195
+ specification_version: 2
196
+ summary: RMagick for Java
197
+ test_files:
198
+ - test/gruff_tests/test/test_accumulator_bar.rb
199
+ - test/gruff_tests/test/test_area.rb
200
+ - test/gruff_tests/test/test_bar.rb
201
+ - test/gruff_tests/test/test_base.rb
202
+ - test/gruff_tests/test/test_bullet.rb
203
+ - test/gruff_tests/test/test_legend.rb
204
+ - test/gruff_tests/test/test_line.rb
205
+ - test/gruff_tests/test/test_mini_bar.rb
206
+ - test/gruff_tests/test/test_mini_pie.rb
207
+ - test/gruff_tests/test/test_mini_side_bar.rb
208
+ - test/gruff_tests/test/test_net.rb
209
+ - test/gruff_tests/test/test_photo.rb
210
+ - test/gruff_tests/test/test_pie.rb
211
+ - test/gruff_tests/test/test_scene.rb
212
+ - test/gruff_tests/test/test_side_bar.rb
213
+ - test/gruff_tests/test/test_sidestacked_bar.rb
214
+ - test/gruff_tests/test/test_spider.rb
215
+ - test/gruff_tests/test/test_stacked_bar.rb