rmagick 1.15.3 → 1.15.4
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 +4 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +10 -10
- data/configure.ac +1 -1
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +2 -2
- data/doc/ilist.html +2 -2
- data/doc/image1.html +2 -2
- data/doc/image2.html +2 -2
- data/doc/image3.html +2 -2
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +2 -2
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +2 -2
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +2 -2
- data/doc/usage.html +2 -2
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +28 -28
- data/ext/RMagick/rmdraw.c +9 -9
- data/ext/RMagick/rmilist.c +4 -4
- data/ext/RMagick/rmimage.c +12 -12
- data/ext/RMagick/rminfo.c +11 -11
- data/ext/RMagick/rmmain.c +26 -26
- data/ext/RMagick/rmutil.c +39 -39
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/doc/rvgclip.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::ClipPath Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgpattern.html">Prev</a> | <a href=
|
data/doc/rvggroup.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Group Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvg.html">Prev</a> | <a href=
|
data/doc/rvgimage.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Image Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvggroup.html">Prev</a> | <a href=
|
data/doc/rvgpattern.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Pattern Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgimage.html">Prev</a> | <a href=
|
data/doc/rvgshape.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: Shapes</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
|
30
30
|
<body>
|
31
|
-
<h6 id="header">RMagick 1.15.
|
31
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
32
32
|
|
33
33
|
<div class="nav">
|
34
34
|
« <a href="rvgstyle.html">Prev</a> | <a href=
|
data/doc/rvgstyle.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: Styles</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvguse.html">Prev</a> | <a href=
|
data/doc/rvgtext.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Text Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -33,7 +33,7 @@
|
|
33
33
|
</head>
|
34
34
|
|
35
35
|
<body>
|
36
|
-
<h6 id="header">RMagick 1.15.
|
36
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
37
37
|
|
38
38
|
<div class="nav">
|
39
39
|
« <a href="rvgclip.html">Prev</a> | <a href=
|
data/doc/rvgtspan.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Tspan Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgtext.html">Prev</a> | <a href=
|
data/doc/rvgtut.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
<meta name="generator" content=
|
10
10
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
11
11
|
|
12
|
-
<title>RMagick 1.15.
|
12
|
+
<title>RMagick 1.15.4: RVG Tutorial</title>
|
13
13
|
<meta name="GENERATOR" content="Quanta Plus" />
|
14
14
|
<link rel="stylesheet" type="text/css" href="css/doc.css" />
|
15
15
|
<style type="text/css">
|
@@ -23,7 +23,7 @@
|
|
23
23
|
</head>
|
24
24
|
|
25
25
|
<body>
|
26
|
-
<h6 id="header">RMagick 1.15.
|
26
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
27
27
|
|
28
28
|
<div class="nav">
|
29
29
|
« <a href="constants.html">Prev</a> | <a href=
|
data/doc/rvguse.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: RVG::Use Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgtspan.html">Prev</a> | <a href=
|
data/doc/rvgxform.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: RVG Reference: Transforms</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
|
30
30
|
<body>
|
31
|
-
<h6 id="header">RMagick 1.15.
|
31
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
32
32
|
|
33
33
|
<div class="nav">
|
34
34
|
« <a href="rvgshape.html">Prev</a> | <a href=
|
data/doc/struct.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: Miscellaneous classes</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 1.15.
|
30
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="draw.html">Prev</a> | <a href=
|
data/doc/usage.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.4: How to use RMagick</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -90,7 +90,7 @@
|
|
90
90
|
</head>
|
91
91
|
|
92
92
|
<body>
|
93
|
-
<h6 id="header">RMagick 1.15.
|
93
|
+
<h6 id="header">RMagick 1.15.4 User's Guide and Reference</h6>
|
94
94
|
|
95
95
|
<div class="nav">
|
96
96
|
« <a href="index.html">Prev</a> | <a href=
|
data/ext/RMagick/MANIFEST
CHANGED
data/ext/RMagick/rmagick.h
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmagick.h,v 1.152.2.
|
1
|
+
/* $Id: rmagick.h,v 1.152.2.2 2007/03/04 00:05:27 rmagick Exp $ */
|
2
2
|
/*=============================================================================
|
3
3
|
| Copyright (C) 2006 by Timothy P. Hunter
|
4
4
|
| Name: rmagick.h
|
@@ -332,29 +332,29 @@ EXTERN VALUE Class_VirtualPixelMethod;
|
|
332
332
|
/*
|
333
333
|
* Commonly-used IDs
|
334
334
|
*/
|
335
|
-
EXTERN ID
|
336
|
-
EXTERN ID
|
337
|
-
EXTERN ID
|
338
|
-
EXTERN ID
|
339
|
-
EXTERN ID
|
340
|
-
EXTERN ID
|
341
|
-
EXTERN ID
|
342
|
-
EXTERN ID
|
343
|
-
EXTERN ID
|
344
|
-
EXTERN ID
|
345
|
-
EXTERN ID
|
346
|
-
EXTERN ID
|
347
|
-
EXTERN ID
|
348
|
-
EXTERN ID
|
349
|
-
EXTERN ID
|
350
|
-
EXTERN ID
|
351
|
-
EXTERN ID
|
352
|
-
EXTERN ID
|
353
|
-
EXTERN ID
|
354
|
-
EXTERN ID
|
355
|
-
EXTERN ID
|
356
|
-
EXTERN ID
|
357
|
-
EXTERN ID
|
335
|
+
EXTERN ID rm_ID__dummy_img_; // "_dummy_img_"
|
336
|
+
EXTERN ID rm_ID_call; // "call"
|
337
|
+
EXTERN ID rm_ID_changed; // "changed"
|
338
|
+
EXTERN ID rm_ID_cur_image; // "cur_image"
|
339
|
+
EXTERN ID rm_ID_dup; // "dup"
|
340
|
+
EXTERN ID rm_ID_enumerators; // "enumerators"
|
341
|
+
EXTERN ID rm_ID_fill; // "fill"
|
342
|
+
EXTERN ID rm_ID_flag; // "flag"
|
343
|
+
EXTERN ID rm_ID_from_s; // "from_s"
|
344
|
+
EXTERN ID rm_ID_Geometry; // "Geometry"
|
345
|
+
EXTERN ID rm_ID_GeometryValue; // "GeometryValue"
|
346
|
+
EXTERN ID rm_ID_height; // "height"
|
347
|
+
EXTERN ID rm_ID_initialize_copy; // "initialize_copy"
|
348
|
+
EXTERN ID rm_ID_length; // "length"
|
349
|
+
EXTERN ID rm_ID_notify_observers; // "notify_observers"
|
350
|
+
EXTERN ID rm_ID_new; // "new"
|
351
|
+
EXTERN ID rm_ID_push; // "push"
|
352
|
+
EXTERN ID rm_ID_spaceship; // "<=>
|
353
|
+
EXTERN ID rm_ID_to_s; // "to_s"
|
354
|
+
EXTERN ID rm_ID_values; // "values"
|
355
|
+
EXTERN ID rm_ID_width; // "width"
|
356
|
+
EXTERN ID rm_ID_x; // "x"
|
357
|
+
EXTERN ID rm_ID_y; // "y"
|
358
358
|
|
359
359
|
|
360
360
|
#define min(a,b) ((a)<(b)?(a):(b))
|
@@ -480,8 +480,8 @@ Pixel_##_channel_##_eq(VALUE self, VALUE v) \
|
|
480
480
|
rm_check_frozen(self); \
|
481
481
|
Data_Get_Struct(self, Pixel, pixel); \
|
482
482
|
pixel->_channel_ = (Quantum) NUM2UINT(v); \
|
483
|
-
(void) rb_funcall(self,
|
484
|
-
(void) rb_funcall(self,
|
483
|
+
(void) rb_funcall(self, rm_ID_changed, 0); \
|
484
|
+
(void) rb_funcall(self, rm_ID_notify_observers, 1, self); \
|
485
485
|
return UINT2NUM((unsigned int)(pixel->_channel_)); \
|
486
486
|
}
|
487
487
|
|
@@ -498,8 +498,8 @@ Pixel_##_cmyk_channel_##_eq(VALUE self, VALUE v) \
|
|
498
498
|
rm_check_frozen(self); \
|
499
499
|
Data_Get_Struct(self, Pixel, pixel); \
|
500
500
|
pixel->_rgb_channel_ = (Quantum) NUM2UINT(v); \
|
501
|
-
(void) rb_funcall(self,
|
502
|
-
(void) rb_funcall(self,
|
501
|
+
(void) rb_funcall(self, rm_ID_changed, 0); \
|
502
|
+
(void) rb_funcall(self, rm_ID_notify_observers, 1, self); \
|
503
503
|
return UINT2NUM((unsigned int)pixel->_rgb_channel_); \
|
504
504
|
} \
|
505
505
|
\
|
data/ext/RMagick/rmdraw.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmdraw.c,v 1.43 2007/
|
1
|
+
/* $Id: rmdraw.c,v 1.43.2.1 2007/03/04 00:05:30 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2007 by Timothy P. Hunter
|
4
4
|
| Name: rmdraw.c
|
@@ -678,7 +678,7 @@ Draw_dup(VALUE self)
|
|
678
678
|
{
|
679
679
|
(void)rb_obj_taint(dup);
|
680
680
|
}
|
681
|
-
return rb_funcall(dup,
|
681
|
+
return rb_funcall(dup, rm_ID_initialize_copy, 1, self);
|
682
682
|
}
|
683
683
|
|
684
684
|
|
@@ -1050,7 +1050,7 @@ Montage_frame_eq(VALUE self, VALUE frame_arg)
|
|
1050
1050
|
volatile VALUE frame;
|
1051
1051
|
|
1052
1052
|
Data_Get_Struct(self, Montage, montage);
|
1053
|
-
frame = rb_funcall(frame_arg,
|
1053
|
+
frame = rb_funcall(frame_arg, rm_ID_to_s, 0);
|
1054
1054
|
magick_clone_string(&montage->info->frame, STRING_PTR(frame));
|
1055
1055
|
|
1056
1056
|
return self;
|
@@ -1067,7 +1067,7 @@ Montage_geometry_eq(VALUE self, VALUE geometry_arg)
|
|
1067
1067
|
volatile VALUE geometry;
|
1068
1068
|
|
1069
1069
|
Data_Get_Struct(self, Montage, montage);
|
1070
|
-
geometry = rb_funcall(geometry_arg,
|
1070
|
+
geometry = rb_funcall(geometry_arg, rm_ID_to_s, 0);
|
1071
1071
|
magick_clone_string(&montage->info->geometry, STRING_PTR(geometry));
|
1072
1072
|
|
1073
1073
|
return self;
|
@@ -1275,7 +1275,7 @@ Montage_tile_eq(VALUE self, VALUE tile_arg)
|
|
1275
1275
|
volatile VALUE tile;
|
1276
1276
|
|
1277
1277
|
Data_Get_Struct(self, Montage, montage);
|
1278
|
-
tile = rb_funcall(tile_arg,
|
1278
|
+
tile = rb_funcall(tile_arg, rm_ID_to_s, 0);
|
1279
1279
|
magick_clone_string(&montage->info->tile, STRING_PTR(tile));
|
1280
1280
|
|
1281
1281
|
return self;
|
@@ -1403,7 +1403,7 @@ static VALUE get_dummy_tm_img(VALUE klass)
|
|
1403
1403
|
Info *info;
|
1404
1404
|
Image *image;
|
1405
1405
|
|
1406
|
-
if (rb_cvar_defined(klass,
|
1406
|
+
if (rb_cvar_defined(klass, rm_ID__dummy_img_) != Qtrue)
|
1407
1407
|
{
|
1408
1408
|
|
1409
1409
|
info = CloneImageInfo(NULL);
|
@@ -1419,10 +1419,10 @@ static VALUE get_dummy_tm_img(VALUE klass)
|
|
1419
1419
|
(void) DestroyImageInfo(info);
|
1420
1420
|
dummy_img = rm_image_new(image);
|
1421
1421
|
|
1422
|
-
RUBY18(rb_cvar_set(klass,
|
1423
|
-
RUBY16(rb_cvar_set(klass,
|
1422
|
+
RUBY18(rb_cvar_set(klass, rm_ID__dummy_img_, dummy_img, 0));
|
1423
|
+
RUBY16(rb_cvar_set(klass, rm_ID__dummy_img_, dummy_img));
|
1424
1424
|
}
|
1425
|
-
dummy_img = rb_cvar_get(klass,
|
1425
|
+
dummy_img = rb_cvar_get(klass, rm_ID__dummy_img_);
|
1426
1426
|
|
1427
1427
|
return dummy_img;
|
1428
1428
|
}
|
data/ext/RMagick/rmilist.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmilist.c,v 1.46 2007/
|
1
|
+
/* $Id: rmilist.c,v 1.46.2.1 2007/03/04 00:05:34 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2007 by Timothy P. Hunter
|
4
4
|
| Name: rmilist.c
|
@@ -493,7 +493,7 @@ ImageList_optimize_layers(VALUE self, VALUE method)
|
|
493
493
|
VALUE
|
494
494
|
rm_imagelist_new()
|
495
495
|
{
|
496
|
-
return rb_funcall(Class_ImageList,
|
496
|
+
return rb_funcall(Class_ImageList, rm_ID_new, 0);
|
497
497
|
}
|
498
498
|
|
499
499
|
|
@@ -579,7 +579,7 @@ rm_imagelist_length(VALUE imagelist)
|
|
579
579
|
{
|
580
580
|
volatile VALUE len;
|
581
581
|
|
582
|
-
len = rb_funcall(imagelist,
|
582
|
+
len = rb_funcall(imagelist, rm_ID_length, 0);
|
583
583
|
return FIX2INT(len);
|
584
584
|
}
|
585
585
|
|
@@ -591,7 +591,7 @@ void
|
|
591
591
|
rm_imagelist_push(VALUE imagelist, VALUE image)
|
592
592
|
{
|
593
593
|
rm_check_frozen(imagelist);
|
594
|
-
(void) rb_funcall(imagelist,
|
594
|
+
(void) rb_funcall(imagelist, rm_ID_push, 1, image);
|
595
595
|
}
|
596
596
|
|
597
597
|
/*
|
data/ext/RMagick/rmimage.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmimage.c,v 1.192.2.
|
1
|
+
/* $Id: rmimage.c,v 1.192.2.2 2007/03/04 00:05:34 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2007 by Timothy P. Hunter
|
4
4
|
| Name: rmimage.c
|
@@ -1570,7 +1570,7 @@ Image_change_geometry(VALUE self, VALUE geom_arg)
|
|
1570
1570
|
volatile VALUE ary;
|
1571
1571
|
|
1572
1572
|
Data_Get_Struct(self, Image, image);
|
1573
|
-
geom_str = rb_funcall(geom_arg,
|
1573
|
+
geom_str = rb_funcall(geom_arg, rm_ID_to_s, 0);
|
1574
1574
|
geometry = STRING_PTR(geom_str);
|
1575
1575
|
|
1576
1576
|
flags = ParseSizeGeometry(image, geometry, &rect);
|
@@ -1596,7 +1596,7 @@ Image_change_geometry(VALUE self, VALUE geom_arg)
|
|
1596
1596
|
volatile VALUE geom_str;
|
1597
1597
|
|
1598
1598
|
Data_Get_Struct(self, Image, image);
|
1599
|
-
geom_str = rb_funcall(geom_arg,
|
1599
|
+
geom_str = rb_funcall(geom_arg, rm_ID_to_s, 0);
|
1600
1600
|
geometry = STRING_PTR(geom_str);
|
1601
1601
|
|
1602
1602
|
width = image->columns;
|
@@ -3346,7 +3346,7 @@ Image_convolve_channel(
|
|
3346
3346
|
VALUE
|
3347
3347
|
Image_copy(VALUE self)
|
3348
3348
|
{
|
3349
|
-
return rb_funcall(self,
|
3349
|
+
return rb_funcall(self, rm_ID_dup, 0);
|
3350
3350
|
}
|
3351
3351
|
|
3352
3352
|
/*
|
@@ -3452,15 +3452,15 @@ Image_density_eq(VALUE self, VALUE density_arg)
|
|
3452
3452
|
// Get the Class ID for the Geometry class.
|
3453
3453
|
if (!Class_Geometry)
|
3454
3454
|
{
|
3455
|
-
Class_Geometry = rb_const_get(Module_Magick,
|
3455
|
+
Class_Geometry = rb_const_get(Module_Magick, rm_ID_Geometry);
|
3456
3456
|
}
|
3457
3457
|
|
3458
3458
|
// Geometry object. Width and height attributes are always positive.
|
3459
3459
|
if (CLASS_OF(density_arg) == Class_Geometry)
|
3460
3460
|
{
|
3461
|
-
x_val = rb_funcall(density_arg,
|
3461
|
+
x_val = rb_funcall(density_arg, rm_ID_width, 0);
|
3462
3462
|
x_res = NUM2DBL(x_val);
|
3463
|
-
y_val = rb_funcall(density_arg,
|
3463
|
+
y_val = rb_funcall(density_arg, rm_ID_height, 0);
|
3464
3464
|
y_res = NUM2DBL(y_val);
|
3465
3465
|
if(x_res == 0.0)
|
3466
3466
|
{
|
@@ -4013,7 +4013,7 @@ Image_dup(VALUE self)
|
|
4013
4013
|
{
|
4014
4014
|
(void) rb_obj_taint(dup);
|
4015
4015
|
}
|
4016
|
-
return rb_funcall(dup,
|
4016
|
+
return rb_funcall(dup, rm_ID_initialize_copy, 1, self);
|
4017
4017
|
}
|
4018
4018
|
|
4019
4019
|
/*
|
@@ -5041,7 +5041,7 @@ Image_geometry_eq(
|
|
5041
5041
|
}
|
5042
5042
|
|
5043
5043
|
|
5044
|
-
geom_str = rb_funcall(geometry,
|
5044
|
+
geom_str = rb_funcall(geometry, rm_ID_to_s, 0);
|
5045
5045
|
geom = STRING_PTR(geom_str);
|
5046
5046
|
if (!IsGeometry(geom))
|
5047
5047
|
{
|
@@ -6568,7 +6568,7 @@ Image_initialize(VALUE self, VALUE info_obj, VALUE width, VALUE height, VALUE fi
|
|
6568
6568
|
// fillobj.fill(self)
|
6569
6569
|
else
|
6570
6570
|
{
|
6571
|
-
(void) rb_funcall(fill,
|
6571
|
+
(void) rb_funcall(fill, rm_ID_fill, 1, self);
|
6572
6572
|
}
|
6573
6573
|
|
6574
6574
|
return self;
|
@@ -6644,7 +6644,7 @@ Image_initialize(int argc, VALUE *argv, VALUE self)
|
|
6644
6644
|
// fillobj.fill(self)
|
6645
6645
|
else
|
6646
6646
|
{
|
6647
|
-
(void) rb_funcall(fill,
|
6647
|
+
(void) rb_funcall(fill, rm_ID_fill, 1, self);
|
6648
6648
|
}
|
6649
6649
|
|
6650
6650
|
return self;
|
@@ -7766,7 +7766,7 @@ Image_random_threshold_channel(
|
|
7766
7766
|
}
|
7767
7767
|
|
7768
7768
|
// Accept any argument that has a to_s method.
|
7769
|
-
geom_str = rb_funcall(argv[0],
|
7769
|
+
geom_str = rb_funcall(argv[0], rm_ID_to_s, 0);
|
7770
7770
|
thresholds = STRING_PTR(geom_str);
|
7771
7771
|
|
7772
7772
|
new_image = rm_clone_image(image);
|