rmagick 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

@@ -158,8 +158,6 @@
158
158
 
159
159
  <li><a href="#ticks_per_second">ticks_per_second</a></li>
160
160
 
161
- <li><a href="#tile_info">tile_info</a></li>
162
-
163
161
  <li><a href="#total_colors">total_colors</a></li>
164
162
 
165
163
  <li><a href="#units">units</a></li>
@@ -687,14 +685,6 @@
687
685
  <h4>Returns</h4>
688
686
 
689
687
  <p>A <a href="struct.html#Rectangle">Rectangle</a> object.</p>
690
-
691
- <h4>Note</h4>
692
-
693
- <p>This attribute replaces the <a href=
694
- "#Image.tile_info">tile_info</a> attribute in releases of
695
- ImageMagick starting with 5.5.6. With releases of ImageMagick
696
- prior to 5.5.6, this attribute is a synonym for
697
- <code>tile_info</code>.</p>
698
688
  </div>
699
689
 
700
690
  <div class="sig">
@@ -1160,13 +1150,15 @@ blur_image is 100% complete.
1160
1150
  <h3 id="orientation">orientation</h3>
1161
1151
 
1162
1152
  <p><span class="arg">image</span>.orientation -&gt;
1153
+ <em>anOrientationType</em><br />
1154
+ <span class="arg">image</span>.orientation =
1163
1155
  <em>anOrientationType</em></p>
1164
1156
  </div>
1165
1157
 
1166
1158
  <div class="desc">
1167
1159
  <h4>Description</h4>
1168
1160
 
1169
- <p>Returns the value of the Exif Orientation Tag.</p>
1161
+ <p>The value of the Exif Orientation Tag.</p>
1170
1162
 
1171
1163
  <h4>Returns</h4>
1172
1164
 
@@ -1344,35 +1336,6 @@ blur_image is 100% complete.
1344
1336
  of the value of this attribute.</p>
1345
1337
  </div>
1346
1338
 
1347
- <div class="sig">
1348
- <h3 id="tile_info">tile_info</h3>
1349
-
1350
- <p><span class="arg">image.</span>tile_info -&gt;
1351
- <em>aRectangle</em><br />
1352
- <span class="arg">image.</span>tile_info = <span class=
1353
- "arg">aRectangle</span></p>
1354
- </div>
1355
-
1356
- <div class="desc">
1357
- <h4>Description</h4>
1358
-
1359
- <p class="imquote">Describes a tile within an image.&nbsp; For
1360
- example, if your image is 640x480 you may only want 320x256
1361
- with an offset of +128+64. It is used for raw formats such as
1362
- RGB and CMYK as well as for TIFF.</p>
1363
-
1364
- <p>This attribute is deprecated in ImageMagick 5.5.6 and later.
1365
- Use <a href="#extract_info">extract_info</a> instead.</p>
1366
-
1367
- <h4>Arguments</h4>
1368
-
1369
- <p>A <a href="struct.html#Rectangle">Rectangle</a> object.</p>
1370
-
1371
- <h4>Returns</h4>
1372
-
1373
- <p>A <a href="struct.html#Rectangle">Rectangle</a> object.</p>
1374
- </div>
1375
-
1376
1339
  <div class="sig">
1377
1340
  <h3 id="total_colors">total_colors</h3>
1378
1341
 
@@ -425,9 +425,8 @@ i = Image.read("gradient:red-blue") { self.size = "100x200" }
425
425
 
426
426
  <h4>pattern</h4>
427
427
 
428
- <p>ImageMagick 5.5.7-3 introduced the <code>pattern:</code>
429
- format. This format supplies a number of built-in patterns that
430
- may be referenced by specifying the pattern name. For example,
428
+ <p>This format supplies a number of built-in patterns that may
429
+ be referenced by specifying the pattern name. For example,
431
430
  <code>pattern:checkerboard</code>. For a list of acceptable
432
431
  patterns, see <a href=
433
432
  "http://www.imagemagick.org/script/formats.php">this
@@ -96,13 +96,13 @@
96
96
  <li><a href="#dispose">dispose</a></li>
97
97
 
98
98
  <li><a href="#dither">dither</a></li>
99
-
100
- <li><a href="#extract">extract</a></li>
101
99
  </ul>
102
100
  </div>
103
101
 
104
102
  <div class="toccol">
105
103
  <ul>
104
+ <li><a href="#extract">extract</a></li>
105
+
106
106
  <li><a href="#filename">filename</a></li>
107
107
 
108
108
  <li><a href="#fill">fill</a></li>
@@ -124,15 +124,15 @@
124
124
  <li><a href="#matte_color">matte_color</a></li>
125
125
 
126
126
  <li><a href="#monitor">monitor</a></li>
127
-
128
- <li><a href="#monochrome">monochrome</a></li>
129
-
130
- <li><a href="#number_scenes">number_scenes</a></li>
131
127
  </ul>
132
128
  </div>
133
129
 
134
130
  <div class="toccol">
135
131
  <ul>
132
+ <li><a href="#monochrome">monochrome</a></li>
133
+
134
+ <li><a href="#number_scenes">number_scenes</a></li>
135
+
136
136
  <li><a href="#orientation">orientation</a></li>
137
137
 
138
138
  <li><a href="#page">page</a></li>
@@ -149,12 +149,6 @@
149
149
 
150
150
  <li><a href="#size">size</a></li>
151
151
 
152
- <li><a href="#subimage">subimage</a></li>
153
-
154
- <li><a href="#subrange">subrange</a></li>
155
-
156
- <li><a href="#tile">tile</a></li>
157
-
158
152
  <li><a href="#units">units</a></li>
159
153
 
160
154
  <li><a href="#view">view</a></li>
@@ -792,12 +786,6 @@ self.undefine("tiff", "bits-per-sample")
792
786
  <p>Either a geometry string or a <a href=
793
787
  "struct.html#Geometry">Geometry</a> object. For example:
794
788
  <code>self.extract = "200x200+100+100"</code>.</p>
795
-
796
- <h4>Notes</h4>
797
-
798
- <p>This attribute replaces the <a href="#Info.tile_eq">tile</a>
799
- attribute, which is deprecated in ImageMagick 5.5.6 and
800
- later.</p>
801
789
  </div>
802
790
 
803
791
  <div class="sig">
@@ -1058,14 +1046,6 @@ self.undefine("tiff", "bits-per-sample")
1058
1046
  <p>Used in conjunction with <a href="#scene">scene</a> to
1059
1047
  specify the range of frames to be extracted when constituting a
1060
1048
  multi-frame image.</p>
1061
-
1062
- <h4>Note</h4>
1063
-
1064
- <p>This attribute replaces the <a href="#subrange">subrange</a>
1065
- attribute, which is deprecated in ImageMagick 5.5.6 and later.
1066
- If <code>number_scenes</code> is used with a version of
1067
- ImageMagick prior to 5.5.6, it is a synonym for the
1068
- <code>subrange</code> attribute.</p>
1069
1049
  </div>
1070
1050
 
1071
1051
  <div class="sig">
@@ -1176,14 +1156,6 @@ self.undefine("tiff", "bits-per-sample")
1176
1156
  "#number_scenes">number_scenes</a> to specify the range of
1177
1157
  frames to be extracted when constituting a multi-frame
1178
1158
  image.</p>
1179
-
1180
- <h4>Note</h4>
1181
-
1182
- <p>This attribute replaces the <a href="#subimage">subimage</a>
1183
- attribute, which is deprecated in ImageMagick 5.5.6 and later.
1184
- If <code>scene</code> is used with a version of ImageMagick
1185
- prior to 5.5.6, it is a synonym for the <code>subimage</code>
1186
- attribute.</p>
1187
1159
  </div>
1188
1160
 
1189
1161
  <div class="sig">
@@ -1228,72 +1200,6 @@ self.undefine("tiff", "bits-per-sample")
1228
1200
  or a <a href="struct.html#Geometry">Geometry</a> object.</p>
1229
1201
  </div>
1230
1202
 
1231
- <div class="sig">
1232
- <h3 id="subimage">subimage</h3>
1233
-
1234
- <p><span class="arg">self.</span>subimage= <span class=
1235
- "arg">anInteger</span></p>
1236
- </div>
1237
-
1238
- <div class="desc">
1239
- <h4>Description</h4>
1240
-
1241
- <p>Specify a base image of an image sequence in a multi-frame
1242
- image.</p>
1243
-
1244
- <h4>Note</h4>
1245
-
1246
- <p>This attribute is deprecated in ImageMagick 5.5.6 and later.
1247
- Use the <a href="#scene">scene</a> attribute instead.</p>
1248
- </div>
1249
-
1250
- <div class="sig">
1251
- <h3 id="subrange">subrange</h3>
1252
-
1253
- <p><span class="arg">self.</span>subrange= <span class=
1254
- "arg">anInteger</span></p>
1255
- </div>
1256
-
1257
- <div class="desc">
1258
- <h4>Description</h4>
1259
-
1260
- <p>Specify the number of images relative to the base image. See
1261
- <a href="#subimage">subimage</a>.</p>
1262
-
1263
- <h4>Note</h4>
1264
-
1265
- <p>This attribute is deprecated in ImageMagick 5.5.6 and later.
1266
- Use the <a href="#number_scenes">number_scenes</a> attribute
1267
- instead.</p>
1268
- </div>
1269
-
1270
- <div class="sig">
1271
- <h3 id="tile">tile</h3>
1272
-
1273
- <p><span class="arg">self.</span>tile= <span class=
1274
- "arg">aString</span> or <span class="arg">aGeometry</span></p>
1275
- </div>
1276
-
1277
- <div class="desc">
1278
- <h4>Description</h4>
1279
-
1280
- <p>Specify a portion of an image to be extracted when the image
1281
- is constituted. The argument is a geometry string. For example:
1282
- <code>self.tile = "200x200+100+100"</code>. This attribute can
1283
- be used to identify a subset of an image that is otherwise too
1284
- large to keep in memory.</p>
1285
-
1286
- <h4>Arguments</h4>
1287
-
1288
- <p>A <a href="imusage.html#geometry_string">geometry string</a>
1289
- or a <a href="struct.html#Geometry">Geometry</a> object.</p>
1290
-
1291
- <h4>Note</h4>
1292
-
1293
- <p>This attribute is deprecated in ImageMagick 5.5.6 and later.
1294
- Use the <a href="#extract">extract</a> attribute instead.</p>
1295
- </div>
1296
-
1297
1203
  <div class="sig">
1298
1204
  <h3 id="units">units</h3>
1299
1205
 
@@ -734,7 +734,7 @@ exit
734
734
  color</dd>
735
735
  </dl>
736
736
 
737
- <h4>Rotate or shear</h4>
737
+ <h4>Rotate, flip, or shear</h4>
738
738
 
739
739
  <dl>
740
740
  <dt><a href=
@@ -742,6 +742,19 @@ exit
742
742
 
743
743
  <dd>Transform the image as dictated by an affine matrix</dd>
744
744
 
745
+ <dt><a href="image1.html#auto_orient">auto_orient</a></dt>
746
+
747
+ <dd>Rotate or flip the image using the EXIF orientation
748
+ tag</dd>
749
+
750
+ <dt><a href="image2.html#flip">flip</a></dt>
751
+
752
+ <dd>Create a vertical mirror image</dd>
753
+
754
+ <dt><a href="image2.html#flop">flop</a></dt>
755
+
756
+ <dd>Create a horizontal mirror image</dd>
757
+
745
758
  <dt><a href="image3.html#rotate">rotate</a></dt>
746
759
 
747
760
  <dd>Rotate the image by the specified angle</dd>
@@ -750,6 +763,14 @@ exit
750
763
 
751
764
  <dd>Shear the image along the X or Y axis, creating a
752
765
  parallelogram</dd>
766
+
767
+ <dt><a href="image3.html#transpose">transpose</a></dt>
768
+
769
+ <dd>Create a horizontal mirror image</dd>
770
+
771
+ <dt><a href="image3.html#transverse">transverse</a></dt>
772
+
773
+ <dd>Create a vertical mirror image</dd>
753
774
  </dl>
754
775
 
755
776
  <h4>Transform</h4>
@@ -807,14 +828,6 @@ exit
807
828
  <dd class="ilist">Merge all the images in the imagelist into
808
829
  a single image</dd>
809
830
 
810
- <dt><a href="image2.html#flip">flip</a></dt>
811
-
812
- <dd>Create a vertical mirror image</dd>
813
-
814
- <dt><a href="image2.html#flop">flop</a></dt>
815
-
816
- <dd>Create a horizontal mirror image</dd>
817
-
818
831
  <dt class="ilist"><a href="ilist.html#mosaic">mosaic</a></dt>
819
832
 
820
833
  <dd class="ilist">Inlay all the images in the imagelist into
@@ -906,7 +919,10 @@ exit
906
919
  <dd>Smooth the contours of an image while still preserving
907
920
  edge information</dd>
908
921
 
909
- <dt><a href="image3.html#sharpen">sharpen</a>, <a href=
922
+ <dt><a href=
923
+ "image1.html#adaptive_sharpen">adaptive_sharpen</a>, <a href=
924
+ "image1.html#adaptive_sharpen_channel">adaptive_sharpen_channel</a>,
925
+ <a href="image3.html#sharpen">sharpen</a>, <a href=
910
926
  "image3.html#sharpen_channel">sharpen_channel</a>, <a href=
911
927
  "image3.html#unsharp_mask">unsharp_mask</a>, <a href=
912
928
  "image3.html#unsharp_mask_channel">unsharp_mask_channel</a></dt>
@@ -950,7 +966,8 @@ exit
950
966
  "image2.html#gaussian_blur">gaussian_blur</a>, <a href=
951
967
  "image2.html#gaussian_blur_channel">gaussian_blur_channel</a>,
952
968
  <a href="image3.html#motion_blur">motion_blur</a>, <a href=
953
- "image3.html#radial_blur">radial_blur</a></dt>
969
+ "image3.html#radial_blur">radial_blur</a>, <a href=
970
+ "image3.html#radial_blur_channel">radial_blur_channel</a></dt>
954
971
 
955
972
  <dd>Blur the image</dd>
956
973
 
@@ -1,4 +1,4 @@
1
- MANIFEST for RMagick-1.12.0 - 18:54:26 06/03/06
1
+ MANIFEST for RMagick-1.13.0 - 19:03:30 06/28/06
2
2
 
3
3
  configure
4
4
  README.html
@@ -34,7 +34,7 @@ post-setup.rb
34
34
  post-install.rb
35
35
  post-clean.rb
36
36
  metaconfig.in
37
- gem_config.rb
37
+ gem_extconf.rb
38
38
  configure.ac
39
39
  README.txt
40
40
  README-Mac-OSX.txt
@@ -90,6 +90,8 @@ doc/ex/tspan01.rb
90
90
  doc/ex/trim.rb
91
91
  doc/ex/triangle01.rb
92
92
  doc/ex/tref01.rb
93
+ doc/ex/transverse.rb
94
+ doc/ex/transpose.rb
93
95
  doc/ex/transparent.rb
94
96
  doc/ex/translate.rb
95
97
  doc/ex/to_blob.rb
@@ -1,4 +1,4 @@
1
- /* $Id: rmagick.h,v 1.110 2006/06/02 23:26:53 rmagick Exp $ */
1
+ /* $Id: rmagick.h,v 1.116 2006/06/28 23:05:31 rmagick Exp $ */
2
2
  /*=============================================================================
3
3
  | Copyright (C) 2006 by Timothy P. Hunter
4
4
  | Name: rmagick.h
@@ -115,7 +115,7 @@ typedef enum
115
115
  {
116
116
  False = 0,
117
117
  True = 1
118
- } boolean;
118
+ } rm_boolean;
119
119
 
120
120
  typedef enum {
121
121
  AnyWeight,
@@ -210,6 +210,22 @@ typedef unsigned int MagickBooleanType;
210
210
  #define UndefinedGravity 0
211
211
  #endif
212
212
 
213
+
214
+ #if !defined(HAVE_SETIMAGEINFOFILE)
215
+ #define SetImageInfoFile(info, fptr) (info)->file = (fptr)
216
+ #endif
217
+
218
+ #if !defined(HAVE_SETIMAGEEXTENT)
219
+ #define SetImageExtent(img, c, r) \
220
+ (img)->columns = (c); \
221
+ (img)->rows = (r)
222
+ #endif
223
+
224
+
225
+ #if !defined(HAVE_SETIMAGEBACKGROUNDCOLOR)
226
+ #define SetImageBackgroundColor(img) SetImage((img), OpaqueOpacity)
227
+ #endif
228
+
213
229
  // This implements the "omitted storage class model" for external variables.
214
230
  // (Ref: Harbison & Steele.) The rmmain.c file defines MAIN, which causes
215
231
  // the single defining declarations to be generated. No other source files
@@ -707,7 +723,7 @@ ATTR_READER(Image, normalized_maximum_error)
707
723
  ATTR_READER(Image, number_colors)
708
724
  ATTR_ACCESSOR(Image, offset)
709
725
  ATTR_WRITER(Image, opacity)
710
- ATTR_READER(Image, orientation)
726
+ ATTR_ACCESSOR(Image, orientation)
711
727
  ATTR_ACCESSOR(Image, page)
712
728
  ATTR_READER(Image, quality)
713
729
  ATTR_READER(Image, quantum_depth)
@@ -731,12 +747,16 @@ extern VALUE Image_new(int, VALUE *, VALUE);
731
747
  extern VALUE Image_initialize(VALUE, VALUE, VALUE, VALUE, VALUE);
732
748
  #endif
733
749
 
750
+ extern VALUE Image_adaptive_sharpen(int, VALUE *, VALUE);
751
+ extern VALUE Image_adaptive_sharpen_channel(int, VALUE *, VALUE);
734
752
  extern VALUE Image_adaptive_threshold(int, VALUE *, VALUE);
735
753
  extern VALUE Image_add_noise(VALUE, VALUE);
736
754
  extern VALUE Image_add_noise_channel(int, VALUE *, VALUE);
737
755
  extern VALUE Image_affine_transform(VALUE, VALUE);
738
756
  extern VALUE Image_aref(VALUE, VALUE);
739
757
  extern VALUE Image_aset(VALUE, VALUE, VALUE);
758
+ extern VALUE Image_auto_orient(VALUE);
759
+ extern VALUE Image_auto_orient_bang(VALUE);
740
760
  extern VALUE Image_properties(VALUE);
741
761
  extern VALUE Image_bilevel_channel(int, VALUE *, VALUE);
742
762
  extern VALUE Image_black_threshold(int, VALUE *, VALUE);
@@ -762,6 +782,8 @@ extern VALUE Image_colorize(int, VALUE *, VALUE);
762
782
  extern VALUE Image_colormap(int, VALUE *, VALUE);
763
783
  extern VALUE Image_composite(int, VALUE *, VALUE);
764
784
  extern VALUE Image_composite_bang(int, VALUE *, VALUE);
785
+ extern VALUE Image_composite_channel(int, VALUE *, VALUE);
786
+ extern VALUE Image_composite_channel_bang(int, VALUE *, VALUE);
765
787
  extern VALUE Image_composite_affine(VALUE, VALUE, VALUE);
766
788
  extern VALUE Image_compress_colormap_bang(VALUE);
767
789
  extern VALUE Image_constitute(VALUE, VALUE, VALUE, VALUE, VALUE);
@@ -837,6 +859,7 @@ extern VALUE Image_quantize(int, VALUE *, VALUE);
837
859
  extern VALUE Image_quantization_error(VALUE);
838
860
  extern VALUE Image_quantum_operator(int, VALUE *, VALUE);
839
861
  extern VALUE Image_radial_blur(VALUE, VALUE);
862
+ extern VALUE Image_radial_blur_channel(int, VALUE *, VALUE);
840
863
  extern VALUE Image_raise(int, VALUE *, VALUE);
841
864
  extern VALUE Image_random_channel_threshold(VALUE, VALUE, VALUE);
842
865
  extern VALUE Image_random_threshold_channel(int, VALUE *, VALUE);
@@ -882,6 +905,10 @@ extern VALUE Image_tint(int, VALUE *, VALUE);
882
905
  extern VALUE Image_to_blob(VALUE);
883
906
  extern VALUE Image_to_color(VALUE, VALUE);
884
907
  extern VALUE Image_transparent(int, VALUE *, VALUE);
908
+ extern VALUE Image_transpose(VALUE);
909
+ extern VALUE Image_transpose_bang(VALUE);
910
+ extern VALUE Image_transverse(VALUE);
911
+ extern VALUE Image_transverse_bang(VALUE);
885
912
  extern VALUE Image_trim(VALUE);
886
913
  extern VALUE Image_trim_bang(VALUE);
887
914
  extern VALUE Image_unsharp_mask(int, VALUE *, VALUE);
@@ -949,9 +976,11 @@ ATTR_ACCESSOR(Pixel, black)
949
976
  extern VALUE Pixel_case_eq(VALUE, VALUE);
950
977
  extern VALUE Pixel_clone(VALUE);
951
978
  extern VALUE Pixel_dup(VALUE);
979
+ extern VALUE Pixel_eql_q(VALUE, VALUE);
952
980
  extern VALUE Pixel_fcmp(int, VALUE *, VALUE);
953
981
  extern VALUE Pixel_from_color(VALUE, VALUE);
954
982
  extern VALUE Pixel_from_HSL(VALUE, VALUE);
983
+ extern VALUE Pixel_hash(VALUE);
955
984
  extern VALUE Pixel_initialize(int, VALUE *, VALUE);
956
985
  extern VALUE Pixel_init_copy(VALUE, VALUE);
957
986
  extern VALUE Pixel_intensity(VALUE);