rmagick 1.7.1 → 1.7.2
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.
- data/ChangeLog +3 -0
- data/README.html +387 -367
- data/README.txt +8 -8
- data/configure +132 -10
- data/configure.ac +9 -1
- data/doc/draw.html +2 -2
- data/ext/RMagick/MANIFEST +2 -1
- data/ext/RMagick/rmagick.h +9 -1
- data/ext/RMagick/rmagick_config.h.in +2 -0
- data/ext/RMagick/rmimage.c +22 -1
- data/ext/RMagick/rmmain.c +29 -12
- data/ext/RMagick/rmutil.c +46 -2
- data/rmagick.gemspec +1 -1
- metadata +3 -3
data/README.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
|
-
RMagick 1.7.
|
2
|
+
RMagick 1.7.2
|
3
3
|
|
4
4
|
|
5
5
|
README
|
6
6
|
|
7
7
|
|
8
|
-
|
8
|
+
02/23/05
|
9
9
|
|
10
10
|
|
11
11
|
Table of Contents
|
@@ -204,7 +204,7 @@ addition to the regular options, there are a few RMagick-specific options:
|
|
204
204
|
|
205
205
|
Running the |configure| and |make| scripts
|
206
206
|
|
207
|
-
De-compress the RMagick-1.7.
|
207
|
+
De-compress the RMagick-1.7.2.tar.gz archive and enter the
|
208
208
|
top directory. Then type:
|
209
209
|
|
210
210
|
$ ./configure <configuration options>
|
@@ -221,9 +221,9 @@ top directory. Then type:
|
|
221
221
|
|
222
222
|
When |make| is running the examples, if you get a message like this:
|
223
223
|
|
224
|
-
/home/you/RMagick-1.7.
|
224
|
+
/home/you/RMagick-1.7.2/lib/RMagick.rb:11:in 'require': libMagick.so.0:
|
225
225
|
cannot open shared object file: No such file or directory -
|
226
|
-
/home/you/RMagick-1.7.
|
226
|
+
/home/you/RMagick-1.7.2/ext/RMagick/RMagick.so (LoadError)
|
227
227
|
|
228
228
|
you probably do not have the directory in which the ImageMagick or
|
229
229
|
GraphicsMagick library is installed in your load path. An easy way
|
@@ -243,7 +243,7 @@ export LD_LIBRARY_PATH=/usr/local/lib
|
|
243
243
|
|
244
244
|
When |make| is running the examples, if you get a message like this:
|
245
245
|
|
246
|
-
hook /home/me/src/RMagick-1.7.
|
246
|
+
hook /home/me/src/RMagick-1.7.2/./post-setup.rb failed:
|
247
247
|
No such file or directory - "/tmp/rmagick6872.6"
|
248
248
|
|
249
249
|
you probably do not have a temporary directory environment variable
|
@@ -264,7 +264,7 @@ earlier release.
|
|
264
264
|
|
265
265
|
Uninstalling
|
266
266
|
|
267
|
-
The
|
267
|
+
The 'uninstall' target will uninstall RMagick completely:
|
268
268
|
|
269
269
|
|make uninstall|
|
270
270
|
|
@@ -390,7 +390,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
390
390
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
391
391
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
392
392
|
|
393
|
-
<http://www.opensource.org/docs/definition.php>
|
393
|
+
<http://www.opensource.org/docs/definition.php>
|
394
394
|
|
395
395
|
*This software is OSI Certified Open Source Software.
|
396
396
|
OSI Certified is a certification mark of the Open Source Initiative.*
|
data/configure
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Guess values for system-dependent variables and create Makefiles.
|
3
|
-
# Generated by GNU Autoconf 2.59 for RMagick
|
3
|
+
# Generated by GNU Autoconf 2.59 for RMagick x.y.z.
|
4
4
|
#
|
5
5
|
# Report bugs to <rmagick@rubyforge.org>.
|
6
6
|
#
|
@@ -268,9 +268,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|
268
268
|
|
269
269
|
# Identity of this package.
|
270
270
|
PACKAGE_NAME='RMagick'
|
271
|
-
PACKAGE_TARNAME='RMagick-
|
272
|
-
PACKAGE_VERSION='
|
273
|
-
PACKAGE_STRING='RMagick
|
271
|
+
PACKAGE_TARNAME='RMagick-x.y.z.tar.gz'
|
272
|
+
PACKAGE_VERSION='x.y.z'
|
273
|
+
PACKAGE_STRING='RMagick x.y.z'
|
274
274
|
PACKAGE_BUGREPORT='rmagick@rubyforge.org'
|
275
275
|
|
276
276
|
# Factoring default headers for most tests.
|
@@ -779,7 +779,7 @@ if test "$ac_init_help" = "long"; then
|
|
779
779
|
# Omit some internal or obsolete options to make the list less imposing.
|
780
780
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
781
781
|
cat <<_ACEOF
|
782
|
-
\`configure' configures RMagick
|
782
|
+
\`configure' configures RMagick x.y.z to adapt to many kinds of systems.
|
783
783
|
|
784
784
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
785
785
|
|
@@ -836,7 +836,7 @@ fi
|
|
836
836
|
|
837
837
|
if test -n "$ac_init_help"; then
|
838
838
|
case $ac_init_help in
|
839
|
-
short | recursive ) echo "Configuration of RMagick
|
839
|
+
short | recursive ) echo "Configuration of RMagick x.y.z:";;
|
840
840
|
esac
|
841
841
|
cat <<\_ACEOF
|
842
842
|
|
@@ -981,7 +981,7 @@ fi
|
|
981
981
|
test -n "$ac_init_help" && exit 0
|
982
982
|
if $ac_init_version; then
|
983
983
|
cat <<\_ACEOF
|
984
|
-
RMagick configure
|
984
|
+
RMagick configure x.y.z
|
985
985
|
generated by GNU Autoconf 2.59
|
986
986
|
|
987
987
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
@@ -995,7 +995,7 @@ cat >&5 <<_ACEOF
|
|
995
995
|
This file contains any messages produced by compilers while
|
996
996
|
running configure, to aid debugging if configure makes a mistake.
|
997
997
|
|
998
|
-
It was created by RMagick $as_me
|
998
|
+
It was created by RMagick $as_me x.y.z, which was
|
999
999
|
generated by GNU Autoconf 2.59. Invocation command line was
|
1000
1000
|
|
1001
1001
|
$ $0 $@
|
@@ -6259,6 +6259,128 @@ _ACEOF
|
|
6259
6259
|
fi
|
6260
6260
|
|
6261
6261
|
|
6262
|
+
|
6263
|
+
echo "$as_me:$LINENO: checking for Image.orientation" >&5
|
6264
|
+
echo $ECHO_N "checking for Image.orientation... $ECHO_C" >&6
|
6265
|
+
if test "${ac_cv_member_Image_orientation+set}" = set; then
|
6266
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6267
|
+
else
|
6268
|
+
cat >conftest.$ac_ext <<_ACEOF
|
6269
|
+
/* confdefs.h. */
|
6270
|
+
_ACEOF
|
6271
|
+
cat confdefs.h >>conftest.$ac_ext
|
6272
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
6273
|
+
/* end confdefs.h. */
|
6274
|
+
#include <stdio.h>
|
6275
|
+
#if HAVE_SYS_TYPES_H
|
6276
|
+
#include <sys/types.h>
|
6277
|
+
#endif
|
6278
|
+
#include "magick/api.h"
|
6279
|
+
|
6280
|
+
int
|
6281
|
+
main ()
|
6282
|
+
{
|
6283
|
+
static Image ac_aggr;
|
6284
|
+
if (ac_aggr.orientation)
|
6285
|
+
return 0;
|
6286
|
+
;
|
6287
|
+
return 0;
|
6288
|
+
}
|
6289
|
+
_ACEOF
|
6290
|
+
rm -f conftest.$ac_objext
|
6291
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6292
|
+
(eval $ac_compile) 2>conftest.er1
|
6293
|
+
ac_status=$?
|
6294
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
6295
|
+
rm -f conftest.er1
|
6296
|
+
cat conftest.err >&5
|
6297
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6298
|
+
(exit $ac_status); } &&
|
6299
|
+
{ ac_try='test -z "$ac_c_werror_flag"
|
6300
|
+
|| test ! -s conftest.err'
|
6301
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6302
|
+
(eval $ac_try) 2>&5
|
6303
|
+
ac_status=$?
|
6304
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6305
|
+
(exit $ac_status); }; } &&
|
6306
|
+
{ ac_try='test -s conftest.$ac_objext'
|
6307
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6308
|
+
(eval $ac_try) 2>&5
|
6309
|
+
ac_status=$?
|
6310
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6311
|
+
(exit $ac_status); }; }; then
|
6312
|
+
ac_cv_member_Image_orientation=yes
|
6313
|
+
else
|
6314
|
+
echo "$as_me: failed program was:" >&5
|
6315
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
6316
|
+
|
6317
|
+
cat >conftest.$ac_ext <<_ACEOF
|
6318
|
+
/* confdefs.h. */
|
6319
|
+
_ACEOF
|
6320
|
+
cat confdefs.h >>conftest.$ac_ext
|
6321
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
6322
|
+
/* end confdefs.h. */
|
6323
|
+
#include <stdio.h>
|
6324
|
+
#if HAVE_SYS_TYPES_H
|
6325
|
+
#include <sys/types.h>
|
6326
|
+
#endif
|
6327
|
+
#include "magick/api.h"
|
6328
|
+
|
6329
|
+
int
|
6330
|
+
main ()
|
6331
|
+
{
|
6332
|
+
static Image ac_aggr;
|
6333
|
+
if (sizeof ac_aggr.orientation)
|
6334
|
+
return 0;
|
6335
|
+
;
|
6336
|
+
return 0;
|
6337
|
+
}
|
6338
|
+
_ACEOF
|
6339
|
+
rm -f conftest.$ac_objext
|
6340
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6341
|
+
(eval $ac_compile) 2>conftest.er1
|
6342
|
+
ac_status=$?
|
6343
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
6344
|
+
rm -f conftest.er1
|
6345
|
+
cat conftest.err >&5
|
6346
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6347
|
+
(exit $ac_status); } &&
|
6348
|
+
{ ac_try='test -z "$ac_c_werror_flag"
|
6349
|
+
|| test ! -s conftest.err'
|
6350
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6351
|
+
(eval $ac_try) 2>&5
|
6352
|
+
ac_status=$?
|
6353
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6354
|
+
(exit $ac_status); }; } &&
|
6355
|
+
{ ac_try='test -s conftest.$ac_objext'
|
6356
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6357
|
+
(eval $ac_try) 2>&5
|
6358
|
+
ac_status=$?
|
6359
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6360
|
+
(exit $ac_status); }; }; then
|
6361
|
+
ac_cv_member_Image_orientation=yes
|
6362
|
+
else
|
6363
|
+
echo "$as_me: failed program was:" >&5
|
6364
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
6365
|
+
|
6366
|
+
ac_cv_member_Image_orientation=no
|
6367
|
+
fi
|
6368
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6369
|
+
fi
|
6370
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6371
|
+
fi
|
6372
|
+
echo "$as_me:$LINENO: result: $ac_cv_member_Image_orientation" >&5
|
6373
|
+
echo "${ECHO_T}$ac_cv_member_Image_orientation" >&6
|
6374
|
+
if test $ac_cv_member_Image_orientation = yes; then
|
6375
|
+
|
6376
|
+
cat >>confdefs.h <<_ACEOF
|
6377
|
+
#define HAVE_IMAGE_ORIENTATION 1
|
6378
|
+
_ACEOF
|
6379
|
+
|
6380
|
+
|
6381
|
+
fi
|
6382
|
+
|
6383
|
+
|
6262
6384
|
# Don't use AC_CHECK_MEMBERS!
|
6263
6385
|
echo "$as_me:$LINENO: checking for Image.extract_info" >&5
|
6264
6386
|
echo $ECHO_N "checking for Image.extract_info... $ECHO_C" >&6
|
@@ -7792,7 +7914,7 @@ _ASBOX
|
|
7792
7914
|
} >&5
|
7793
7915
|
cat >&5 <<_CSEOF
|
7794
7916
|
|
7795
|
-
This file was extended by RMagick $as_me
|
7917
|
+
This file was extended by RMagick $as_me x.y.z, which was
|
7796
7918
|
generated by GNU Autoconf 2.59. Invocation command line was
|
7797
7919
|
|
7798
7920
|
CONFIG_FILES = $CONFIG_FILES
|
@@ -7852,7 +7974,7 @@ _ACEOF
|
|
7852
7974
|
|
7853
7975
|
cat >>$CONFIG_STATUS <<_ACEOF
|
7854
7976
|
ac_cs_version="\\
|
7855
|
-
RMagick config.status
|
7977
|
+
RMagick config.status x.y.z
|
7856
7978
|
configured by $0, generated by GNU Autoconf 2.59,
|
7857
7979
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
7858
7980
|
|
data/configure.ac
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# RMagick configure.ac
|
3
3
|
|
4
|
-
AC_INIT(RMagick,
|
4
|
+
AC_INIT(RMagick, x.y.z, rmagick@rubyforge.org, RMagick-x.y.z.tar.gz)
|
5
5
|
echo "Configuring ${PACKAGE_STRING}"
|
6
6
|
|
7
7
|
AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
|
@@ -158,6 +158,14 @@ AC_CHECK_MEMBERS([ExceptionInfo.module],,,
|
|
158
158
|
#endif
|
159
159
|
#include "magick/api.h"])
|
160
160
|
|
161
|
+
|
162
|
+
AC_CHECK_MEMBERS([Image.orientation],,,
|
163
|
+
[#include <stdio.h>
|
164
|
+
#if HAVE_SYS_TYPES_H
|
165
|
+
#include <sys/types.h>
|
166
|
+
#endif
|
167
|
+
#include "magick/api.h"])
|
168
|
+
|
161
169
|
# Don't use AC_CHECK_MEMBERS!
|
162
170
|
AC_CACHE_CHECK(for Image.extract_info, rm_cv_member_Image_extract_info,
|
163
171
|
AC_TRY_COMPILE([
|
data/doc/draw.html
CHANGED
@@ -2619,8 +2619,8 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2619
2619
|
|
2620
2620
|
<h4>Arguments</h4>
|
2621
2621
|
|
2622
|
-
<p>One of the constants <code>
|
2623
|
-
<code>
|
2622
|
+
<p>One of the constants <code>StartAnchor</code>,
|
2623
|
+
<code>MiddleAnchor</code>, or <code>EndAnchor</code>.</p>
|
2624
2624
|
|
2625
2625
|
<h4>Returns</h4>
|
2626
2626
|
|
data/ext/RMagick/MANIFEST
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
MANIFEST for RMagick-1.7.
|
1
|
+
MANIFEST for RMagick-1.7.2 - 10:33:42 02/23/05
|
2
2
|
|
3
3
|
configure
|
4
4
|
lib/RMagick.rb
|
@@ -11,6 +11,7 @@ examples/image_opacity.rb
|
|
11
11
|
examples/histogram.rb
|
12
12
|
examples/describe.rb
|
13
13
|
uninstall.rb
|
14
|
+
rmagick.gemspec
|
14
15
|
post-setup.rb
|
15
16
|
post-install.rb
|
16
17
|
post-clean.rb
|
data/ext/RMagick/rmagick.h
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmagick.h,v 1.75
|
1
|
+
/* $Id: rmagick.h,v 1.75.2.1 2005/01/11 23:00:56 rmagick Exp $ */
|
2
2
|
/*=============================================================================
|
3
3
|
| Copyright (C) 2004 by Timothy P. Hunter
|
4
4
|
| Name: rmagick.h
|
@@ -259,6 +259,9 @@ EXTERN VALUE Class_ResolutionType;
|
|
259
259
|
EXTERN VALUE Class_StretchType;
|
260
260
|
EXTERN VALUE Class_StyleType;
|
261
261
|
EXTERN VALUE Class_WeightType;
|
262
|
+
#if defined(HAVE_IMAGE_ORIENTATION)
|
263
|
+
EXTERN VALUE Class_OrientationType;
|
264
|
+
#endif
|
262
265
|
|
263
266
|
/*
|
264
267
|
* Commonly-used IDs
|
@@ -632,7 +635,9 @@ ATTR_READER(Image, normalized_maximum_error)
|
|
632
635
|
ATTR_READER(Image, number_colors)
|
633
636
|
ATTR_ACCESSOR(Image, offset)
|
634
637
|
ATTR_WRITER(Image, opacity)
|
638
|
+
ATTR_READER(Image, orientation)
|
635
639
|
ATTR_ACCESSOR(Image, page)
|
640
|
+
ATTR_READER(Image, quality)
|
636
641
|
ATTR_READER(Image, quantum_depth)
|
637
642
|
ATTR_ACCESSOR(Image, rendering_intent)
|
638
643
|
ATTR_READER(Image, rows)
|
@@ -895,6 +900,9 @@ extern VALUE TypeMetric_from_TypeMetric(TypeMetric *);
|
|
895
900
|
#if defined(HAVE_GETIMAGESTATISTICS)
|
896
901
|
extern VALUE Statistics_new(ImageStatistics *);
|
897
902
|
#endif
|
903
|
+
#if defined(HAVE_IMAGE_ORIENTATION)
|
904
|
+
extern VALUE OrientationType_new(OrientationType);
|
905
|
+
#endif
|
898
906
|
|
899
907
|
#if defined(HAVE_RB_DEFINE_ALLOC_FUNC)
|
900
908
|
extern VALUE Enum_alloc(VALUE);
|
@@ -100,6 +100,8 @@
|
|
100
100
|
#undef HAVE_INDEXCHANNEL
|
101
101
|
/* Introduced in IM 5.5.6 */
|
102
102
|
#undef HAVE_IMAGE_EXTRACT_INFO
|
103
|
+
/* Introduced in IM 6.0.0 */
|
104
|
+
#undef HAVE_IMAGE_ORIENTATION
|
103
105
|
/* Introduced in IM 5.5.6 */
|
104
106
|
#undef HAVE_IMAGEINFO_NUMBER_SCENES
|
105
107
|
/* Introduced in IM 5.5.7, GM 1.1 */
|
data/ext/RMagick/rmimage.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmimage.c,v 1.89
|
1
|
+
/* $Id: rmimage.c,v 1.89.2.1 2005/01/11 23:00:56 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2004 by Timothy P. Hunter
|
4
4
|
| Name: rmimage.c
|
@@ -5065,6 +5065,24 @@ Image_ordered_dither(VALUE self)
|
|
5065
5065
|
return rm_image_new(new_image);
|
5066
5066
|
}
|
5067
5067
|
|
5068
|
+
/*
|
5069
|
+
Method: Image#orientation
|
5070
|
+
Purpose: Return the orientation attribute as an OrientationType enum value.
|
5071
|
+
*/
|
5072
|
+
VALUE
|
5073
|
+
Image_orientation(VALUE self)
|
5074
|
+
{
|
5075
|
+
#if defined(HAVE_IMAGE_ORIENTATION)
|
5076
|
+
Image *image;
|
5077
|
+
|
5078
|
+
Data_Get_Struct(self, Image, image);
|
5079
|
+
return OrientationType_new(image->orientation);
|
5080
|
+
#else
|
5081
|
+
rm_not_implemented();
|
5082
|
+
return (VALUE)0;
|
5083
|
+
#endif
|
5084
|
+
}
|
5085
|
+
|
5068
5086
|
/*
|
5069
5087
|
Method: Image#page
|
5070
5088
|
Purpose: the page attribute getter
|
@@ -5607,6 +5625,9 @@ Image_radial_blur(VALUE self, VALUE angle)
|
|
5607
5625
|
}
|
5608
5626
|
|
5609
5627
|
|
5628
|
+
DEF_ATTR_READER(Image, quality, ulong)
|
5629
|
+
|
5630
|
+
|
5610
5631
|
/*
|
5611
5632
|
Method: Image#quantize(<number_colors<, colorspace<, dither<, tree_depth<, measure_error>>>>>)
|
5612
5633
|
defaults: 256, Magick::RGBColorspace, true, 0, false
|
data/ext/RMagick/rmmain.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmmain.c,v 1.74
|
1
|
+
/* $Id: rmmain.c,v 1.74.2.2 2005/02/23 15:09:50 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2004 by Timothy P. Hunter
|
4
4
|
| Name: rmmain.c
|
@@ -600,7 +600,9 @@ Init_RMagick(void)
|
|
600
600
|
DCL_ATTR_READER(Image, number_colors)
|
601
601
|
DCL_ATTR_ACCESSOR(Image, offset)
|
602
602
|
DCL_ATTR_WRITER(Image, opacity)
|
603
|
+
DCL_ATTR_READER(Image, orientation)
|
603
604
|
DCL_ATTR_ACCESSOR(Image, page)
|
605
|
+
DCL_ATTR_READER(Image, quality)
|
604
606
|
DCL_ATTR_READER(Image, quantum_depth)
|
605
607
|
DCL_ATTR_ACCESSOR(Image, rendering_intent)
|
606
608
|
DCL_ATTR_READER(Image, rows)
|
@@ -1293,6 +1295,21 @@ Init_RMagick(void)
|
|
1293
1295
|
ENUMERATOR(PoissonNoise)
|
1294
1296
|
END_ENUM
|
1295
1297
|
|
1298
|
+
#if defined(HAVE_IMAGE_ORIENTATION)
|
1299
|
+
// Orientation constants
|
1300
|
+
DEF_ENUM(OrientationType)
|
1301
|
+
ENUMERATOR(UndefinedOrientation)
|
1302
|
+
ENUMERATOR(TopLeftOrientation)
|
1303
|
+
ENUMERATOR(TopRightOrientation)
|
1304
|
+
ENUMERATOR(BottomRightOrientation)
|
1305
|
+
ENUMERATOR(BottomLeftOrientation)
|
1306
|
+
ENUMERATOR(LeftTopOrientation)
|
1307
|
+
ENUMERATOR(RightTopOrientation)
|
1308
|
+
ENUMERATOR(RightBottomOrientation)
|
1309
|
+
ENUMERATOR(LeftBottomOrientation)
|
1310
|
+
END_ENUM
|
1311
|
+
#endif
|
1312
|
+
|
1296
1313
|
// Paint method constants
|
1297
1314
|
DEF_ENUM(PaintMethod)
|
1298
1315
|
ENUMERATOR(PointMethod)
|
@@ -1406,17 +1423,17 @@ Init_RMagick(void)
|
|
1406
1423
|
// namespace. The only way to use these classes is via the Magick:: namespace.
|
1407
1424
|
|
1408
1425
|
// Magick::AffineMatrix
|
1409
|
-
Class_AffineMatrix = rb_struct_define(NULL, "sx", "rx", "ry", "sy", "tx", "ty",
|
1426
|
+
Class_AffineMatrix = rb_struct_define(NULL, "sx", "rx", "ry", "sy", "tx", "ty", NULL);
|
1410
1427
|
rb_define_const(Module_Magick, "AffineMatrix", Class_AffineMatrix);
|
1411
1428
|
|
1412
1429
|
#if defined(HAVE_GETIMAGESTATISTICS)
|
1413
1430
|
// These classes are defined for >= GM 1.1.
|
1414
1431
|
|
1415
1432
|
// Magick::Statistics
|
1416
|
-
Class_Statistics = rb_struct_define(NULL, "red", "green", "blue", "opacity",
|
1433
|
+
Class_Statistics = rb_struct_define(NULL, "red", "green", "blue", "opacity", NULL);
|
1417
1434
|
rb_define_const(Module_Magick, "Statistics", Class_Statistics);
|
1418
1435
|
// Magick::ChannelStatistics
|
1419
|
-
Class_StatisticsChannel = rb_struct_define(NULL, "max", "min", "mean", "stddev", "var",
|
1436
|
+
Class_StatisticsChannel = rb_struct_define(NULL, "max", "min", "mean", "stddev", "var", NULL);
|
1420
1437
|
rb_define_const(Class_Statistics, "Channel", Class_StatisticsChannel);
|
1421
1438
|
#endif
|
1422
1439
|
|
@@ -1432,40 +1449,40 @@ Init_RMagick(void)
|
|
1432
1449
|
, "green_primary"
|
1433
1450
|
, "blue_primary"
|
1434
1451
|
, "white_point"
|
1435
|
-
,
|
1452
|
+
, NULL);
|
1436
1453
|
rb_define_method(Class_Chromaticity, "to_s", ChromaticityInfo_to_s, 0);
|
1437
1454
|
rb_define_const(Module_Magick, "Chromaticity", Class_Chromaticity);
|
1438
1455
|
|
1439
1456
|
// Magick::Color
|
1440
|
-
Class_Color = rb_struct_define(NULL, "name", "compliance", "color",
|
1457
|
+
Class_Color = rb_struct_define(NULL, "name", "compliance", "color", NULL);
|
1441
1458
|
rb_define_method(Class_Color, "to_s", Color_to_s, 0);
|
1442
1459
|
rb_define_const(Module_Magick, "Color", Class_Color);
|
1443
1460
|
|
1444
1461
|
// Magick::Point
|
1445
|
-
Class_Point = rb_struct_define(NULL, "x", "y",
|
1462
|
+
Class_Point = rb_struct_define(NULL, "x", "y", NULL);
|
1446
1463
|
rb_define_const(Module_Magick, "Point", Class_Point);
|
1447
1464
|
|
1448
1465
|
// Magick::Rectangle
|
1449
|
-
Class_Rectangle = rb_struct_define(NULL, "width", "height", "x", "y",
|
1466
|
+
Class_Rectangle = rb_struct_define(NULL, "width", "height", "x", "y", NULL);
|
1450
1467
|
rb_define_method(Class_Rectangle, "to_s", RectangleInfo_to_s, 0);
|
1451
1468
|
rb_define_const(Module_Magick, "Rectangle", Class_Rectangle);
|
1452
1469
|
|
1453
1470
|
// Magick::Segment
|
1454
|
-
Class_Segment = rb_struct_define(NULL, "x1", "y1", "x2", "y2",
|
1471
|
+
Class_Segment = rb_struct_define(NULL, "x1", "y1", "x2", "y2", NULL);
|
1455
1472
|
rb_define_method(Class_Segment, "to_s", SegmentInfo_to_s, 0);
|
1456
1473
|
rb_define_const(Module_Magick, "Segment", Class_Segment);
|
1457
1474
|
|
1458
1475
|
// Magick::Font
|
1459
1476
|
Class_Font = rb_struct_define(NULL, "name", "description",
|
1460
1477
|
"family", "style", "stretch", "weight",
|
1461
|
-
"encoding", "foundry", "format",
|
1478
|
+
"encoding", "foundry", "format", NULL);
|
1462
1479
|
rb_define_method(Class_Font, "to_s", Font_to_s, 0);
|
1463
1480
|
rb_define_const(Module_Magick, "Font", Class_Font);
|
1464
1481
|
|
1465
1482
|
// Magick::TypeMetric
|
1466
1483
|
Class_TypeMetric = rb_struct_define(NULL, "pixels_per_em", "ascent", "descent",
|
1467
1484
|
"width", "height", "max_advance", "bounds",
|
1468
|
-
"underline_position", "underline_thickness",
|
1485
|
+
"underline_position", "underline_thickness", NULL);
|
1469
1486
|
rb_define_method(Class_TypeMetric, "to_s", TypeMetric_to_s, 0);
|
1470
1487
|
rb_define_const(Module_Magick, "TypeMetric", Class_TypeMetric);
|
1471
1488
|
|
@@ -1486,7 +1503,7 @@ static void version_constants(void)
|
|
1486
1503
|
|
1487
1504
|
rb_define_const(Module_Magick, "Version", rb_str_new2(PACKAGE_STRING));
|
1488
1505
|
sprintf(long_version,
|
1489
|
-
"This is %s ($Date:
|
1506
|
+
"This is %s ($Date: 2005/02/23 15:09:50 $) Copyright (C) 2004 by Timothy P. Hunter\n"
|
1490
1507
|
"Built with %s\n"
|
1491
1508
|
"Built for %s\n"
|
1492
1509
|
"Web page: http://rmagick.rubyforge.org\n"
|