rmagick 1.15.13 → 1.15.14
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 +11 -0
- data/README.html +9 -9
- data/README.txt +7 -7
- data/configure +350 -14
- data/configure.ac +6 -5
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +9 -9
- data/doc/draw.html +5 -5
- data/doc/ex/clip_path.rb +5 -11
- data/doc/ex/stegano.rb +0 -16
- data/doc/ex/wet_floor.rb +14 -8
- data/doc/ilist.html +5 -5
- data/doc/image1.html +7 -7
- data/doc/image2.html +5 -5
- data/doc/image3.html +4 -4
- data/doc/imageattrs.html +3 -3
- data/doc/imusage.html +3 -3
- data/doc/index.html +7 -7
- data/doc/info.html +5 -5
- data/doc/magick.html +4 -4
- data/doc/optequiv.html +3 -3
- data/doc/rvg.html +3 -3
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +3 -3
- data/doc/rvgpattern.html +3 -3
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +4 -4
- data/doc/rvgtut.html +4 -4
- data/doc/rvguse.html +3 -3
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +6 -6
- data/doc/usage.html +3 -3
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +9 -1
- data/ext/RMagick/rmagick_config.h.in +8 -0
- data/ext/RMagick/rmdraw.c +2 -2
- data/ext/RMagick/rmfill.c +2 -2
- data/ext/RMagick/rmilist.c +3 -3
- data/ext/RMagick/rmimage.c +42 -10
- data/ext/RMagick/rminfo.c +2 -2
- data/ext/RMagick/rmmain.c +3 -3
- data/ext/RMagick/rmutil.c +5 -2
- data/lib/RMagick.rb +2 -2
- data/lib/rvg/clippath.rb +2 -2
- data/lib/rvg/container.rb +2 -2
- data/lib/rvg/describable.rb +2 -2
- data/lib/rvg/embellishable.rb +2 -2
- data/lib/rvg/misc.rb +2 -2
- data/lib/rvg/paint.rb +7 -2
- data/lib/rvg/pathdata.rb +2 -2
- data/lib/rvg/rvg.rb +2 -2
- data/lib/rvg/stretchable.rb +14 -2
- data/lib/rvg/stylable.rb +2 -2
- data/lib/rvg/text.rb +2 -2
- data/lib/rvg/transformable.rb +2 -2
- data/lib/rvg/units.rb +2 -2
- data/rmagick.gemspec +1 -1
- metadata +3 -3
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.14: 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.14 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgtspan.html">Prev</a> | <a href=
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"rvgpattern.html#use">RVG::Pattern</a> classes.</p>
|
77
77
|
|
78
78
|
<p>The use object is similar to a group. Any styles specified
|
79
|
-
on the use will
|
79
|
+
on the use will propagate to the referenced object. However,
|
80
80
|
styles on the referenced object will override the styles
|
81
81
|
specified on the RVG::Use object.</p>
|
82
82
|
|
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.14: 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.14 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.14: 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.14 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="draw.html">Prev</a> | <a href=
|
@@ -129,7 +129,7 @@
|
|
129
129
|
<p>The easiest way to use an <code>Image::View</code> object
|
130
130
|
is to create it with the <a href=
|
131
131
|
"image3.html#view">Image#view</a> method, which provides a
|
132
|
-
block-scoped view and automatic
|
132
|
+
block-scoped view and automatic syncing. You probably won't
|
133
133
|
want to create a view by calling <code>new</code>.</p>
|
134
134
|
|
135
135
|
<h5>Arguments</h5>
|
@@ -221,7 +221,7 @@
|
|
221
221
|
pixels = view[3][]
|
222
222
|
# Use arrays to specify a non-contiguous set of rows and columns
|
223
223
|
pixels = view[[1,3,5]][[2,4,6]]
|
224
|
-
# Use ranges to specify a
|
224
|
+
# Use ranges to specify a contiguous set of rows and columns
|
225
225
|
pixels = view[1..5][2..6]
|
226
226
|
</pre>
|
227
227
|
</div>
|
@@ -414,7 +414,7 @@
|
|
414
414
|
|
415
415
|
<p>The Geometry class contains the same information as an
|
416
416
|
×Magick <a href="imusage.html#geometry">geometry
|
417
|
-
string</a>. Geometry objects are
|
417
|
+
string</a>. Geometry objects are interchangeable with geometry
|
418
418
|
strings.</p>
|
419
419
|
</div>
|
420
420
|
|
@@ -578,7 +578,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
578
578
|
<h3>Introduction</h3>
|
579
579
|
|
580
580
|
<p>A pixel describes the smallest individually addressable
|
581
|
-
part of an image. In the
|
581
|
+
part of an image. In the RGB <a href=
|
582
582
|
"constants.html#ColorspaceType">colorspace</a>, a pixel's
|
583
583
|
color is described by its intensity in the red, green, and
|
584
584
|
blue channels. Its opacity is described by its intensity in
|
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.14: 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.14 User's Guide and Reference</h6>
|
94
94
|
|
95
95
|
<div class="nav">
|
96
96
|
« <a href="index.html">Prev</a> | <a href=
|
@@ -148,7 +148,7 @@
|
|
148
148
|
"#rubygems">2</a></span> the RMagick.rb file, which defines the
|
149
149
|
<b>Magick</b> module. The Magick module contains 3 major classes,
|
150
150
|
<b>ImageList</b>, <b>Image</b>, and <b>Draw</b>. This section -
|
151
|
-
<em>Basic
|
151
|
+
<em>Basic Concepts</em> - describes the ImageList and Image
|
152
152
|
classes. The Draw class is explained in the <em><a href=
|
153
153
|
"#drawing">Drawing on and adding text to images</a></em> section,
|
154
154
|
below.</p>
|
data/ext/RMagick/MANIFEST
CHANGED
data/ext/RMagick/rmagick.h
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmagick.h,v 1.152.2.4.2.
|
1
|
+
/* $Id: rmagick.h,v 1.152.2.4.2.2 2008/05/04 14:18:13 rmagick Exp $ */
|
2
2
|
/*=============================================================================
|
3
3
|
| Copyright (C) 2006 by Timothy P. Hunter
|
4
4
|
| Name: rmagick.h
|
@@ -238,6 +238,14 @@ typedef unsigned int MagickBooleanType;
|
|
238
238
|
#define SetImageInfoFile(info, fptr) (info)->file = (fptr)
|
239
239
|
#endif
|
240
240
|
|
241
|
+
#if !defined(HAVE_REMOVEFIRSTIMAGEFROMLIST)
|
242
|
+
#define RemoveFirstImageFromList(i) ShiftImageList(i)
|
243
|
+
#endif
|
244
|
+
|
245
|
+
#if !defined(HAVE_GETBLOBSIZE)
|
246
|
+
#define GetBlobSize(i) SizeBlob(i)
|
247
|
+
#endif
|
248
|
+
|
241
249
|
#define ROUND_TO_QUANTUM(value) ((Quantum) ((value) > MaxRGB ? MaxRGB : (value) + 0.5))
|
242
250
|
|
243
251
|
#if !defined(HAVE_SETIMAGEEXTENT)
|
@@ -15,6 +15,8 @@
|
|
15
15
|
#undef HAVE_ADDNOISEIMAGECHANNEL
|
16
16
|
/* Introduced in IM 6.0.0, GM 1.1 */
|
17
17
|
#undef HAVE_ALLCHANNELS
|
18
|
+
/* Introduced in GM 1.2 */
|
19
|
+
#undef HAVE_ALLOCATEIMAGEPROFILEITERATOR
|
18
20
|
/* Introduced in IM 6.0.0 */
|
19
21
|
#undef HAVE_BILEVELIMAGECHANNEL
|
20
22
|
/* Introduced in IM 5.5.7, GM 1.1 */
|
@@ -63,6 +65,8 @@
|
|
63
65
|
#undef HAVE_GAMMAIMAGECHANNEL
|
64
66
|
/* Introduced in IM 6.0.1 */
|
65
67
|
#undef HAVE_GAUSSIANBLURIMAGECHANNEL
|
68
|
+
/* Introduced in GM 1.1.4, IM 6.0.0 */
|
69
|
+
#undef HAVE_GETBLOBSIZE
|
66
70
|
/* Introduced in GM 1.1 */
|
67
71
|
#undef HAVE_GETCOLORHISTOGRAM
|
68
72
|
/* Introduced in IM 6.0.1 */
|
@@ -127,6 +131,8 @@
|
|
127
131
|
#undef HAVE_IMAGE_BIAS
|
128
132
|
/* Introduced in IM 5.5.6 - Not available in GM */
|
129
133
|
#undef HAVE_IMAGE_EXTRACT_INFO
|
134
|
+
/* Removed in GM 1.2 */
|
135
|
+
#undef HAVE_IMAGE_IPTC_PROFILE
|
130
136
|
/* Introduced in IM 6.0.0 */
|
131
137
|
#undef HAVE_IMAGE_QUALITY
|
132
138
|
/* Introduced in IM 6.0.0 */
|
@@ -205,6 +211,8 @@
|
|
205
211
|
#undef HAVE_REC709YCBCRCOLORSPACE
|
206
212
|
/* Introduced in IM 6.3.1-3 */
|
207
213
|
#undef HAVE_RECOLORIMAGE
|
214
|
+
/* Introduced in GM 1.1.4, IM 6.0.0 */
|
215
|
+
#undef HAVE_REMOVEFIRSTIMAGEFROMLIST
|
208
216
|
/* Introduced in IM 6.2.1 */
|
209
217
|
#undef HAVE_NEW_REMOVEIMAGEPROFILE
|
210
218
|
#undef HAVE_REPLACECOMPOSITEOP
|
data/ext/RMagick/rmdraw.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmdraw.c,v 1.43.2.2.2.
|
1
|
+
/* $Id: rmdraw.c,v 1.43.2.2.2.2 2008/02/24 23:25:07 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmdraw.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: Contains Draw class methods.
|
data/ext/RMagick/rmfill.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmfill.c,v 1.17.2.1
|
1
|
+
/* $Id: rmfill.c,v 1.17.2.1.2.1 2008/02/24 23:25:40 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmfill.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: GradientFill, TextureFill class definitions for RMagick
|
data/ext/RMagick/rmilist.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmilist.c,v 1.46.2.1
|
1
|
+
/* $Id: rmilist.c,v 1.46.2.1.2.2 2008/05/04 14:21:58 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmilist.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: ImageList class method definitions for RMagick
|
@@ -653,7 +653,7 @@ ImageList_quantize(int argc, VALUE *argv, VALUE self)
|
|
653
653
|
// Create new ImageList object, convert mapped image sequence to images,
|
654
654
|
// append to images array.
|
655
655
|
new_imagelist = rm_imagelist_new();
|
656
|
-
while ((new_image =
|
656
|
+
while ((new_image = RemoveFirstImageFromList(&new_images)))
|
657
657
|
{
|
658
658
|
rm_imagelist_push(new_imagelist, rm_image_new(new_image));
|
659
659
|
}
|
data/ext/RMagick/rmimage.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmimage.c,v 1.192.2.5.2.
|
1
|
+
/* $Id: rmimage.c,v 1.192.2.5.2.6 2008/05/05 22:59:40 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmimage.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: Image class method definitions for RMagick
|
@@ -442,12 +442,13 @@ Image_add_profile(VALUE self, VALUE name)
|
|
442
442
|
Image *image, *profile_image;
|
443
443
|
ImageInfo *info;
|
444
444
|
ExceptionInfo exception;
|
445
|
+
#if !defined(HAVE_IMAGE_IPTC_PROFILE)
|
446
|
+
ProfileInfo profile_info;
|
447
|
+
#endif
|
445
448
|
char *profile_filename = NULL;
|
446
449
|
long profile_filename_l = 0;
|
447
|
-
ProfileInfo *generic;
|
448
450
|
const unsigned char *profile;
|
449
451
|
size_t profile_l;
|
450
|
-
long x;
|
451
452
|
|
452
453
|
rm_check_frozen(self);
|
453
454
|
Data_Get_Struct(self, Image, image);
|
@@ -456,7 +457,13 @@ Image_add_profile(VALUE self, VALUE name)
|
|
456
457
|
profile_filename = STRING_PTR_LEN(name, profile_filename_l);
|
457
458
|
|
458
459
|
info = CloneImageInfo(NULL);
|
460
|
+
#if !defined(HAVE_IMAGE_IPTC_PROFILE)
|
461
|
+
profile_info.name="IPTC";
|
462
|
+
profile_info.info=(unsigned char *) GetImageProfile(image, profile_info.name, &profile_info.length);
|
463
|
+
info->client_data=&profile_info;
|
464
|
+
#else
|
459
465
|
info->client_data= (void *) &image->iptc_profile;
|
466
|
+
#endif
|
460
467
|
strncpy(info->filename, profile_filename, min(profile_filename_l, sizeof(info->filename)));
|
461
468
|
info->filename[MaxTextExtent-1] = '\0';
|
462
469
|
|
@@ -478,6 +485,29 @@ Image_add_profile(VALUE self, VALUE name)
|
|
478
485
|
}
|
479
486
|
}
|
480
487
|
|
488
|
+
#if defined(HAVE_ALLOCATEIMAGEPROFILEITERATOR)
|
489
|
+
/* GraphicsMagick 1.2 */
|
490
|
+
{
|
491
|
+
ImageProfileIterator profile_iterator;
|
492
|
+
const char *profile_name;
|
493
|
+
size_t profile_length;
|
494
|
+
|
495
|
+
profile_iterator = AllocateImageProfileIterator(profile_image);
|
496
|
+
while (NextImageProfile(profile_iterator, &profile_name, &profile, &profile_length) != MagickFail)
|
497
|
+
{
|
498
|
+
if ((rm_strcasecmp(profile_name, "ICC") == 0) || (rm_strcasecmp(profile_name, "ICM") == 0))
|
499
|
+
(void) ProfileImage(image, profile_name, (unsigned char *) profile, profile_length, True);
|
500
|
+
else
|
501
|
+
(void) SetImageProfile(image, profile_name, profile, profile_length);
|
502
|
+
}
|
503
|
+
DeallocateImageProfileIterator(profile_iterator);
|
504
|
+
}
|
505
|
+
|
506
|
+
#else
|
507
|
+
{
|
508
|
+
long x;
|
509
|
+
ProfileInfo *generic;
|
510
|
+
|
481
511
|
/* ICC ICM Profile */
|
482
512
|
profile = GetImageProfile(profile_image, "ICM", &profile_l);
|
483
513
|
if (profile)
|
@@ -499,6 +529,8 @@ Image_add_profile(VALUE self, VALUE name)
|
|
499
529
|
break;
|
500
530
|
}
|
501
531
|
}
|
532
|
+
}
|
533
|
+
#endif
|
502
534
|
|
503
535
|
done:
|
504
536
|
(void) DestroyImage(profile_image);
|
@@ -5574,19 +5606,19 @@ Image_inspect(VALUE self)
|
|
5574
5606
|
x += sprintf(buffer+x, "%lu-bit", quantum_depth);
|
5575
5607
|
|
5576
5608
|
// Print blob info if appropriate.
|
5577
|
-
if (
|
5609
|
+
if (GetBlobSize(image) != 0)
|
5578
5610
|
{
|
5579
|
-
if (
|
5611
|
+
if (GetBlobSize(image) >= (1 << 24))
|
5580
5612
|
{
|
5581
|
-
x += sprintf(buffer+x, " %lumb", (unsigned long) (
|
5613
|
+
x += sprintf(buffer+x, " %lumb", (unsigned long) (GetBlobSize(image)/1024/1024));
|
5582
5614
|
}
|
5583
|
-
else if (
|
5615
|
+
else if (GetBlobSize(image) >= 1024)
|
5584
5616
|
{
|
5585
|
-
x += sprintf(buffer+x, " %lukb", (unsigned long) (
|
5617
|
+
x += sprintf(buffer+x, " %lukb", (unsigned long) (GetBlobSize(image)/1024));
|
5586
5618
|
}
|
5587
5619
|
else
|
5588
5620
|
{
|
5589
|
-
x += sprintf(buffer+x, " %lub", (unsigned long)
|
5621
|
+
x += sprintf(buffer+x, " %lub", (unsigned long) GetBlobSize(image));
|
5590
5622
|
}
|
5591
5623
|
}
|
5592
5624
|
|
data/ext/RMagick/rminfo.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rminfo.c,v 1.45.2.2.2.
|
1
|
+
/* $Id: rminfo.c,v 1.45.2.2.2.2 2008/02/24 23:26:38 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rminfo.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: Info class method definitions for RMagick.
|
data/ext/RMagick/rmmain.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmmain.c,v 1.159.2.2
|
1
|
+
/* $Id: rmmain.c,v 1.159.2.2.2.1 2008/02/24 23:26:38 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmmain.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: Contains all module, class, method declarations.
|
@@ -1937,7 +1937,7 @@ static void version_constants(void)
|
|
1937
1937
|
rb_define_const(Module_Magick, "Version", str);
|
1938
1938
|
|
1939
1939
|
sprintf(long_version,
|
1940
|
-
"This is %s ($Date:
|
1940
|
+
"This is %s ($Date: 2008/02/24 23:26:38 $) Copyright (C) 2008 by Timothy P. Hunter\n"
|
1941
1941
|
"Built with %s\n"
|
1942
1942
|
"Built for %s\n"
|
1943
1943
|
"Web page: http://rmagick.rubyforge.org\n"
|
data/ext/RMagick/rmutil.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/* $Id: rmutil.c,v 1.90.2.3.2.
|
1
|
+
/* $Id: rmutil.c,v 1.90.2.3.2.6 2008/05/04 14:19:41 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
|
-
| Copyright (C)
|
3
|
+
| Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
| Name: rmutil.c
|
5
5
|
| Author: Tim Hunter
|
6
6
|
| Purpose: Utility functions for RMagick
|
@@ -3007,9 +3007,12 @@ rm_write_temp_image(Image *image, char *tmpnam)
|
|
3007
3007
|
|
3008
3008
|
long registry_id;
|
3009
3009
|
|
3010
|
+
#if !defined(GRAPHICSMAGICK)
|
3011
|
+
/* This leak doesn't occur in GraphicsMagick as far as I know. */
|
3010
3012
|
rb_warn("`%s' can cause memory leaks when RMagick was built with " Q(MAGICKNAME) " " MagickLibVersionText
|
3011
3013
|
".\nUpgrade to ImageMagick 6.3.4 or later to prevent this behavior."
|
3012
3014
|
, rb_id2name(rb_frame_last_func()));
|
3015
|
+
#endif
|
3013
3016
|
|
3014
3017
|
registry_id = SetMagickRegistry(ImageRegistryType, image, sizeof(Image), &image->exception);
|
3015
3018
|
rm_check_image_exception(image, RetainOnError);
|
data/lib/RMagick.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# $Id: RMagick.rb,v 1.51.4.
|
1
|
+
# $Id: RMagick.rb,v 1.51.4.2 2008/02/24 23:24:17 rmagick Exp $
|
2
2
|
#==============================================================================
|
3
|
-
# Copyright (C)
|
3
|
+
# Copyright (C) 2008 by Timothy P. Hunter
|
4
4
|
# Name: RMagick.rb
|
5
5
|
# Author: Tim Hunter
|
6
6
|
# Purpose: Extend Ruby to interface with ImageMagick.
|
data/lib/rvg/clippath.rb
CHANGED
data/lib/rvg/container.rb
CHANGED
data/lib/rvg/describable.rb
CHANGED
data/lib/rvg/embellishable.rb
CHANGED
data/lib/rvg/misc.rb
CHANGED
data/lib/rvg/paint.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
|
-
# $Id: paint.rb,v 1.4
|
3
|
-
# Copyright (C)
|
2
|
+
# $Id: paint.rb,v 1.4.4.1 2008/02/24 23:22:14 rmagick Exp $
|
3
|
+
# Copyright (C) 2008 Timothy P. Hunter
|
4
4
|
#++
|
5
5
|
# Defines paint server classes.
|
6
6
|
# Eventually this will include gradients.
|
@@ -18,6 +18,11 @@ module Magick
|
|
18
18
|
include Duplicatable
|
19
19
|
include Stylable
|
20
20
|
|
21
|
+
# Return upper-left corner, width, height of viewport in user coordinates.
|
22
|
+
# Usually these are the values specified when the Pattern object is
|
23
|
+
# created, but they can be changed by a call to the viewbox method.
|
24
|
+
attr_reader :x, :y, :width, :height
|
25
|
+
|
21
26
|
# Create a pattern that can be used with the :fill or :stroke styles.
|
22
27
|
# The +width+ and +height+ arguments define the viewport.
|
23
28
|
# The pattern will be repeated at <tt>x+m*width</tt> and <tt>y+n*height</tt>
|