rmagick 1.9.1 → 1.9.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 +5 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +89 -23
- data/configure.ac +19 -3
- data/doc/ilist.html +44 -19
- data/doc/image1.html +29 -29
- data/doc/image3.html +42 -35
- data/doc/imageattrs.html +113 -12
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +10 -5
- data/ext/RMagick/rmagick_config.h.in +4 -1
- data/ext/RMagick/rmimage.c +73 -29
- data/ext/RMagick/rmmain.c +16 -2
- data/ext/RMagick/rmutil.c +341 -461
- data/lib/RMagick.rb +15 -8
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
RMagick 1.9.2
|
2
|
+
o Feature 2412, add the virtual_pixel_method attribute and the VirtualPixelMethod
|
3
|
+
enumeration
|
4
|
+
o Feature 2462, add the ticks_per_second attribute
|
5
|
+
|
1
6
|
RMagick 1.9.1
|
2
7
|
o Fixed bug #2157, Image#total_colors is now an alias of Image#number_colors
|
3
8
|
o Fixed bug #2155, Image#dispose= now accepts a DisposeType enum, #dispose
|
data/README.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>RMagick 1.9.
|
4
|
+
<title>RMagick 1.9.2 README</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
6
6
|
<meta name="GENERATOR" content="BlueCloth">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
|
-
<h1>RMagick 1.9.
|
9
|
+
<h1>RMagick 1.9.2 README</h1>
|
10
10
|
|
11
|
-
<h2>09/
|
11
|
+
<h2>09/15/05</h2>
|
12
12
|
|
13
13
|
<h2>Table Of Contents</h2>
|
14
14
|
|
@@ -42,7 +42,7 @@ ImageMagick and GraphicsMagick image processing libraries.</p>
|
|
42
42
|
|
43
43
|
<p><strong>Author:</strong> Tim Hunter</p>
|
44
44
|
|
45
|
-
<p><strong>Email:</strong> <a href="ma&#
|
45
|
+
<p><strong>Email:</strong> <a href="mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a></p>
|
46
46
|
|
47
47
|
<p><strong>RubyForge:</strong> <a href="http://rubyforge.org/projects/rmagick/">http://rubyforge.org/projects/rmagick/</a></p>
|
48
48
|
|
@@ -218,7 +218,7 @@ addition to the regular options, there are a few RMagick-specific options:</p>
|
|
218
218
|
|
219
219
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
220
220
|
|
221
|
-
<p>De-compress the RMagick-1.9.
|
221
|
+
<p>De-compress the RMagick-1.9.2.tar.gz archive and enter the top
|
222
222
|
directory. Then type:</p>
|
223
223
|
|
224
224
|
<pre><code>$ ./configure <configuration options>
|
@@ -239,9 +239,9 @@ $ make clean
|
|
239
239
|
|
240
240
|
<p>When make is running the examples, if you get a message like this:</p>
|
241
241
|
|
242
|
-
<pre><code>/home/you/RMagick-1.9.
|
242
|
+
<pre><code>/home/you/RMagick-1.9.2/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
243
243
|
cannot open shared object file: No such file or directory -
|
244
|
-
/home/you/RMagick-1.9.
|
244
|
+
/home/you/RMagick-1.9.2/ext/RMagick/RMagick.so (LoadError)
|
245
245
|
</code></pre>
|
246
246
|
|
247
247
|
<p>you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
@@ -261,7 +261,7 @@ systems, see the documentation for the dynamic loading facility.</p>
|
|
261
261
|
|
262
262
|
<p>When make is running the examples, if you get a message like this:</p>
|
263
263
|
|
264
|
-
<pre><code>hook /home/me/src/RMagick-1.9.
|
264
|
+
<pre><code>hook /home/me/src/RMagick-1.9.2/./post-setup.rb failed:
|
265
265
|
No such file or directory - "/tmp/rmagick6872.6"
|
266
266
|
</code></pre>
|
267
267
|
|
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
RMagick 1.9.
|
1
|
+
RMagick 1.9.2 README
|
2
2
|
================================
|
3
|
-
09/
|
3
|
+
09/15/05
|
4
4
|
--------
|
5
5
|
|
6
6
|
Table Of Contents
|
@@ -188,7 +188,7 @@ addition to the regular options, there are a few RMagick-specific options:
|
|
188
188
|
|
189
189
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
190
190
|
|
191
|
-
De-compress the RMagick-1.9.
|
191
|
+
De-compress the RMagick-1.9.2.tar.gz archive and enter the top
|
192
192
|
directory. Then type:
|
193
193
|
|
194
194
|
$ ./configure <configuration options>
|
@@ -206,9 +206,9 @@ The message can also refer to "libGraphicsMagick". Typically this message means
|
|
206
206
|
#### Cannot open shared object file
|
207
207
|
When make is running the examples, if you get a message like this:
|
208
208
|
|
209
|
-
/home/you/RMagick-1.9.
|
209
|
+
/home/you/RMagick-1.9.2/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
210
210
|
cannot open shared object file: No such file or directory -
|
211
|
-
/home/you/RMagick-1.9.
|
211
|
+
/home/you/RMagick-1.9.2/ext/RMagick/RMagick.so (LoadError)
|
212
212
|
|
213
213
|
you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
214
214
|
library is installed in your load path. An easy way to fix this is to define the
|
@@ -225,7 +225,7 @@ systems, see the documentation for the dynamic loading facility.
|
|
225
225
|
#### No such file or directory - "/tmp/rmagick6872.6"
|
226
226
|
When make is running the examples, if you get a message like this:
|
227
227
|
|
228
|
-
hook /home/me/src/RMagick-1.9.
|
228
|
+
hook /home/me/src/RMagick-1.9.2/./post-setup.rb failed:
|
229
229
|
No such file or directory - "/tmp/rmagick6872.6"
|
230
230
|
|
231
231
|
you probably do not have a temporary directory environment variable set. Set
|
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 1.9.
|
3
|
+
# Generated by GNU Autoconf 2.59 for RMagick 1.9.2.
|
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-1.9.
|
272
|
-
PACKAGE_VERSION='1.9.
|
273
|
-
PACKAGE_STRING='RMagick 1.9.
|
271
|
+
PACKAGE_TARNAME='RMagick-1.9.2.tar.gz'
|
272
|
+
PACKAGE_VERSION='1.9.2'
|
273
|
+
PACKAGE_STRING='RMagick 1.9.2'
|
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 1.9.
|
782
|
+
\`configure' configures RMagick 1.9.2 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 1.9.
|
839
|
+
short | recursive ) echo "Configuration of RMagick 1.9.2:";;
|
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 1.9.
|
984
|
+
RMagick configure 1.9.2
|
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 1.9.
|
998
|
+
It was created by RMagick $as_me 1.9.2, which was
|
999
999
|
generated by GNU Autoconf 2.59. Invocation command line was
|
1000
1000
|
|
1001
1001
|
$ $0 $@
|
@@ -6721,9 +6721,9 @@ _ACEOF
|
|
6721
6721
|
fi
|
6722
6722
|
|
6723
6723
|
|
6724
|
-
echo "$as_me:$LINENO: checking for Image.
|
6725
|
-
echo $ECHO_N "checking for Image.
|
6726
|
-
if test "${
|
6724
|
+
echo "$as_me:$LINENO: checking for Image.ticks_per_second" >&5
|
6725
|
+
echo $ECHO_N "checking for Image.ticks_per_second... $ECHO_C" >&6
|
6726
|
+
if test "${ac_cv_member_Image_ticks_per_second+set}" = set; then
|
6727
6727
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6728
6728
|
else
|
6729
6729
|
cat >conftest.$ac_ext <<_ACEOF
|
@@ -6742,7 +6742,7 @@ int
|
|
6742
6742
|
main ()
|
6743
6743
|
{
|
6744
6744
|
static Image ac_aggr;
|
6745
|
-
if (ac_aggr.
|
6745
|
+
if (ac_aggr.ticks_per_second)
|
6746
6746
|
return 0;
|
6747
6747
|
;
|
6748
6748
|
return 0;
|
@@ -6770,7 +6770,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6770
6770
|
ac_status=$?
|
6771
6771
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6772
6772
|
(exit $ac_status); }; }; then
|
6773
|
-
|
6773
|
+
ac_cv_member_Image_ticks_per_second=yes
|
6774
6774
|
else
|
6775
6775
|
echo "$as_me: failed program was:" >&5
|
6776
6776
|
sed 's/^/| /' conftest.$ac_ext >&5
|
@@ -6791,7 +6791,7 @@ int
|
|
6791
6791
|
main ()
|
6792
6792
|
{
|
6793
6793
|
static Image ac_aggr;
|
6794
|
-
if (sizeof ac_aggr.
|
6794
|
+
if (sizeof ac_aggr.ticks_per_second)
|
6795
6795
|
return 0;
|
6796
6796
|
;
|
6797
6797
|
return 0;
|
@@ -6819,23 +6819,23 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6819
6819
|
ac_status=$?
|
6820
6820
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6821
6821
|
(exit $ac_status); }; }; then
|
6822
|
-
|
6822
|
+
ac_cv_member_Image_ticks_per_second=yes
|
6823
6823
|
else
|
6824
6824
|
echo "$as_me: failed program was:" >&5
|
6825
6825
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6826
6826
|
|
6827
|
-
|
6827
|
+
ac_cv_member_Image_ticks_per_second=no
|
6828
6828
|
fi
|
6829
6829
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6830
6830
|
fi
|
6831
6831
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6832
6832
|
fi
|
6833
|
-
echo "$as_me:$LINENO: result: $
|
6834
|
-
echo "${ECHO_T}$
|
6835
|
-
if test $
|
6833
|
+
echo "$as_me:$LINENO: result: $ac_cv_member_Image_ticks_per_second" >&5
|
6834
|
+
echo "${ECHO_T}$ac_cv_member_Image_ticks_per_second" >&6
|
6835
|
+
if test $ac_cv_member_Image_ticks_per_second = yes; then
|
6836
6836
|
|
6837
6837
|
cat >>confdefs.h <<_ACEOF
|
6838
|
-
#define
|
6838
|
+
#define HAVE_IMAGE_TICKS_PER_SECOND 1
|
6839
6839
|
_ACEOF
|
6840
6840
|
|
6841
6841
|
|
@@ -7838,7 +7838,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|
7838
7838
|
int
|
7839
7839
|
main ()
|
7840
7840
|
{
|
7841
|
-
|
7841
|
+
StorageType x; x = QuantumPixel
|
7842
7842
|
;
|
7843
7843
|
return 0;
|
7844
7844
|
}
|
@@ -7884,6 +7884,72 @@ _ACEOF
|
|
7884
7884
|
|
7885
7885
|
fi
|
7886
7886
|
|
7887
|
+
echo "$as_me:$LINENO: checking for TransparentVirtualPixelMethod enum value" >&5
|
7888
|
+
echo $ECHO_N "checking for TransparentVirtualPixelMethod enum value... $ECHO_C" >&6
|
7889
|
+
if test "${rm_cv_enum_transparentvirtualpixelmethod+set}" = set; then
|
7890
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7891
|
+
else
|
7892
|
+
cat >conftest.$ac_ext <<_ACEOF
|
7893
|
+
/* confdefs.h. */
|
7894
|
+
_ACEOF
|
7895
|
+
cat confdefs.h >>conftest.$ac_ext
|
7896
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
7897
|
+
/* end confdefs.h. */
|
7898
|
+
#include <stdio.h>
|
7899
|
+
#if HAVE_SYS_TYPES_H
|
7900
|
+
#include <sys/types.h>
|
7901
|
+
#endif
|
7902
|
+
#include "magick/api.h"
|
7903
|
+
int
|
7904
|
+
main ()
|
7905
|
+
{
|
7906
|
+
VirtualPixelMethod x; x = TransparentVirtualPixelMethod
|
7907
|
+
;
|
7908
|
+
return 0;
|
7909
|
+
}
|
7910
|
+
_ACEOF
|
7911
|
+
rm -f conftest.$ac_objext
|
7912
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7913
|
+
(eval $ac_compile) 2>conftest.er1
|
7914
|
+
ac_status=$?
|
7915
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
7916
|
+
rm -f conftest.er1
|
7917
|
+
cat conftest.err >&5
|
7918
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7919
|
+
(exit $ac_status); } &&
|
7920
|
+
{ ac_try='test -z "$ac_c_werror_flag"
|
7921
|
+
|| test ! -s conftest.err'
|
7922
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7923
|
+
(eval $ac_try) 2>&5
|
7924
|
+
ac_status=$?
|
7925
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7926
|
+
(exit $ac_status); }; } &&
|
7927
|
+
{ ac_try='test -s conftest.$ac_objext'
|
7928
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7929
|
+
(eval $ac_try) 2>&5
|
7930
|
+
ac_status=$?
|
7931
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7932
|
+
(exit $ac_status); }; }; then
|
7933
|
+
rm_cv_enum_transparentvirtualpixelmethod='yes'
|
7934
|
+
else
|
7935
|
+
echo "$as_me: failed program was:" >&5
|
7936
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
7937
|
+
|
7938
|
+
rm_cv_enum_transparentvirtualpixelmethod='no'
|
7939
|
+
fi
|
7940
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7941
|
+
fi
|
7942
|
+
echo "$as_me:$LINENO: result: $rm_cv_enum_transparentvirtualpixelmethod" >&5
|
7943
|
+
echo "${ECHO_T}$rm_cv_enum_transparentvirtualpixelmethod" >&6
|
7944
|
+
|
7945
|
+
if test "$rm_cv_enum_transparentvirtualpixelmethod" = yes; then
|
7946
|
+
cat >>confdefs.h <<\_ACEOF
|
7947
|
+
#define HAVE_TRANSPARENTVIRTUALPIXELMETHOD 1
|
7948
|
+
_ACEOF
|
7949
|
+
|
7950
|
+
fi
|
7951
|
+
|
7952
|
+
|
7887
7953
|
if test "$rm_have_getimagequantumdepth" = yes; then
|
7888
7954
|
# IM 6.0.5 changed the number of arguments to GetImageQuantumDepth.
|
7889
7955
|
echo "$as_me:$LINENO: checking if GetImageQuantumDepth has only 1 argument" >&5
|
@@ -8706,7 +8772,7 @@ _ASBOX
|
|
8706
8772
|
} >&5
|
8707
8773
|
cat >&5 <<_CSEOF
|
8708
8774
|
|
8709
|
-
This file was extended by RMagick $as_me 1.9.
|
8775
|
+
This file was extended by RMagick $as_me 1.9.2, which was
|
8710
8776
|
generated by GNU Autoconf 2.59. Invocation command line was
|
8711
8777
|
|
8712
8778
|
CONFIG_FILES = $CONFIG_FILES
|
@@ -8766,7 +8832,7 @@ _ACEOF
|
|
8766
8832
|
|
8767
8833
|
cat >>$CONFIG_STATUS <<_ACEOF
|
8768
8834
|
ac_cs_version="\\
|
8769
|
-
RMagick config.status 1.9.
|
8835
|
+
RMagick config.status 1.9.2
|
8770
8836
|
configured by $0, generated by GNU Autoconf 2.59,
|
8771
8837
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
8772
8838
|
|
data/configure.ac
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# RMagick configure.ac
|
3
3
|
|
4
|
-
AC_INIT(RMagick, 1.9.
|
4
|
+
AC_INIT(RMagick, 1.9.2, rmagick@rubyforge.org, RMagick-1.9.2.tar.gz)
|
5
5
|
echo "Configuring ${PACKAGE_STRING}"
|
6
6
|
|
7
7
|
AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
|
@@ -197,7 +197,7 @@ AC_CHECK_MEMBERS([Image.quality],,,
|
|
197
197
|
#endif
|
198
198
|
#include "magick/api.h"])
|
199
199
|
|
200
|
-
AC_CHECK_MEMBERS([Image.
|
200
|
+
AC_CHECK_MEMBERS([Image.ticks_per_second],,,
|
201
201
|
[#include <stdio.h>
|
202
202
|
#if HAVE_SYS_TYPES_H
|
203
203
|
#include <sys/types.h>
|
@@ -436,7 +436,7 @@ AC_CACHE_CHECK(for QuantumPixel enum value, rm_cv_enum_quantumpixel,
|
|
436
436
|
#include <sys/types.h>
|
437
437
|
#endif
|
438
438
|
#include "magick/api.h"],
|
439
|
-
[
|
439
|
+
[StorageType x; x = QuantumPixel],
|
440
440
|
rm_cv_enum_quantumpixel='yes',
|
441
441
|
rm_cv_enum_quantumpixel='no')])
|
442
442
|
|
@@ -444,6 +444,22 @@ if test "$rm_cv_enum_quantumpixel" = yes; then
|
|
444
444
|
AC_DEFINE(HAVE_QUANTUMPIXEL)
|
445
445
|
fi
|
446
446
|
|
447
|
+
AC_CACHE_CHECK(for TransparentVirtualPixelMethod enum value, rm_cv_enum_transparentvirtualpixelmethod,
|
448
|
+
[AC_TRY_COMPILE(
|
449
|
+
[#include <stdio.h>
|
450
|
+
#if HAVE_SYS_TYPES_H
|
451
|
+
#include <sys/types.h>
|
452
|
+
#endif
|
453
|
+
#include "magick/api.h"],
|
454
|
+
[VirtualPixelMethod x; x = TransparentVirtualPixelMethod],
|
455
|
+
rm_cv_enum_transparentvirtualpixelmethod='yes',
|
456
|
+
rm_cv_enum_transparentvirtualpixelmethod='no')])
|
457
|
+
|
458
|
+
if test "$rm_cv_enum_transparentvirtualpixelmethod" = yes; then
|
459
|
+
AC_DEFINE(HAVE_TRANSPARENTVIRTUALPIXELMETHOD)
|
460
|
+
fi
|
461
|
+
|
462
|
+
|
447
463
|
if test "$rm_have_getimagequantumdepth" = yes; then
|
448
464
|
# IM 6.0.5 changed the number of arguments to GetImageQuantumDepth.
|
449
465
|
AC_CACHE_CHECK(if GetImageQuantumDepth has only 1 argument, rm_cv_args_get_image_quantum_depth,
|
data/doc/ilist.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for
|
7
|
+
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
9
|
<title>RMagick: class ImageList</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
@@ -66,6 +66,8 @@
|
|
66
66
|
<li><a href="#length">length</a></li>
|
67
67
|
|
68
68
|
<li><a href="#scene">scene, scene=</a></li>
|
69
|
+
|
70
|
+
<li><a href="#ticks_per_second_eq">ticks_per_second=</a></li>
|
69
71
|
</ul>
|
70
72
|
|
71
73
|
<h3>instance methods</h3>
|
@@ -182,8 +184,9 @@ i = Magick::ImageList.new("Button_A.gif", "Cheetah.jpg")
|
|
182
184
|
<div class="desc">
|
183
185
|
<h4>Description</h4>
|
184
186
|
|
185
|
-
<p>
|
186
|
-
|
187
|
+
<p>In conjunction with <a href=
|
188
|
+
"#ticks_per_second_eq">ticks_per_second</a> sets the length of
|
189
|
+
time between each image in an animation. The
|
187
190
|
<code>delay=</code> attribute assigns the same delay to all the
|
188
191
|
images in the imagelist. Use <a href=
|
189
192
|
"imageattrs.html#Image.delay">Image#delay=</a> to set different
|
@@ -191,8 +194,8 @@ i = Magick::ImageList.new("Button_A.gif", "Cheetah.jpg")
|
|
191
194
|
|
192
195
|
<h4>Arguments</h4>
|
193
196
|
|
194
|
-
<p>An integer value representing the number of
|
195
|
-
|
197
|
+
<p>An integer value representing the number of ticks that must
|
198
|
+
elapse between each image in an animation.</p>
|
196
199
|
|
197
200
|
<h4>Returns</h4>
|
198
201
|
|
@@ -281,6 +284,30 @@ imagelist.scene » 10
|
|
281
284
|
</pre>
|
282
285
|
</div>
|
283
286
|
|
287
|
+
<div class="sig">
|
288
|
+
<h3 id="ticks_per_second_eq">ticks_per_second=</h3>
|
289
|
+
|
290
|
+
<p><span class="arg">imagelist</span>.ticks_per_second =
|
291
|
+
<em>anInteger</em></p>
|
292
|
+
</div>
|
293
|
+
|
294
|
+
<div class="desc">
|
295
|
+
<h4>Description</h4>
|
296
|
+
|
297
|
+
<p>Used in conjunction with <a href="#delay_eq">delay</a> to
|
298
|
+
establish the elapsed time between frames in an animation. By
|
299
|
+
default the number of ticks per second is 100.</p>
|
300
|
+
|
301
|
+
<p>This attribute is available only in ImageMagick 6.2.4 and
|
302
|
+
later. Prior to this release the number of ticks per second is
|
303
|
+
fixed at 100.</p>
|
304
|
+
|
305
|
+
<h4>Example</h4>
|
306
|
+
<pre>
|
307
|
+
imagelist.ticks_per_second = 1000
|
308
|
+
</pre>
|
309
|
+
</div>
|
310
|
+
|
284
311
|
<h2 class="methods">instance methods</h2>
|
285
312
|
|
286
313
|
<div class="sig">
|
@@ -519,17 +546,15 @@ imagelist.animate { self.server_name = "other:0.0" }
|
|
519
546
|
<img style="display:none" id="notaveraged" onmouseout=
|
520
547
|
"this.style.display='none'; averaged.style.display=''; averagedspin.style.display='';"
|
521
548
|
title="Click to see the example script" src=
|
522
|
-
"ex/average_before.gif" alt="average example"
|
523
|
-
"notaveraged" /><!--
|
549
|
+
"ex/average_before.gif" alt="average example" /><!--
|
524
550
|
This img tag displays the averaged image when the mouse is not over
|
525
551
|
--><img style="display:" id=
|
526
552
|
"averaged" onmouseover=
|
527
553
|
"this.style.display='none'; notaveraged.style.display=''; averagedspin.style.display='none';"
|
528
|
-
src="ex/average_after.gif" alt="average example"
|
529
|
-
|
530
|
-
"
|
531
|
-
"Mouse over the example to see the 3 original images"
|
532
|
-
"averagedspin" /></p>
|
554
|
+
src="ex/average_after.gif" alt="average example" /></a>
|
555
|
+
<img src="ex/images/spin.gif" alt="" class="spin" style=
|
556
|
+
"left:131px; display:" id="averagedspin" title=
|
557
|
+
"Mouse over the example to see the 3 original images" /></p>
|
533
558
|
|
534
559
|
<h4>Magick API</h4>
|
535
560
|
|
@@ -799,16 +824,16 @@ imagelist2 = imagelist1.copy
|
|
799
824
|
<h4>Arguments</h4>
|
800
825
|
|
801
826
|
<p>A <em>blob</em> can be a string containing an image file
|
802
|
-
such as a JPEG or GIF. The string can contain a multi-image
|
803
|
-
as an animated GIF or a Photoshop image with multiple
|
804
|
-
can also be one of the strings produced by
|
805
|
-
"#to_blob">to_blob</a>. Control how the image(s) are
|
806
|
-
by setting additional <a href=
|
827
|
+
such as a JPEG or GIF. The string can contain a multi-image
|
828
|
+
file such as an animated GIF or a Photoshop image with multiple
|
829
|
+
layers. A blob can also be one of the strings produced by
|
830
|
+
<a href="#to_blob">to_blob</a>. Control how the image(s) are
|
831
|
+
created by setting additional <a href=
|
807
832
|
"info.html">Image::Info</a> attributes in the optional block
|
808
833
|
argument. Useful attributes include <a href=
|
809
834
|
"info.html#scene">scene</a>, <a href=
|
810
|
-
"info.html#number_scenes">number_scenes</a>, and
|
811
|
-
|
835
|
+
"info.html#number_scenes">number_scenes</a>, and <a href=
|
836
|
+
"info.html#extract">extract</a>.</p>
|
812
837
|
|
813
838
|
<h4>Returns</h4>
|
814
839
|
|