rmagick 2.3.0 → 2.4.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.
- data/ChangeLog +3 -0
- data/README.html +215 -188
- data/build_tarball.rake +12 -11
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +2 -2
- data/doc/ex/get_type_metrics.rb +1 -1
- data/doc/ex/wet_floor.rb +12 -12
- data/doc/ilist.html +2 -2
- data/doc/image1.html +3 -3
- data/doc/image2.html +2 -2
- data/doc/image3.html +2 -2
- data/doc/imageattrs.html +42 -30
- 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 +18 -18
- data/doc/usage.html +2 -2
- data/ext/RMagick/MANIFEST +1 -2
- data/ext/RMagick/extconf.rb +26 -5
- data/ext/RMagick/rmagick.h +20 -9
- data/ext/RMagick/rmdraw.c +21 -13
- data/ext/RMagick/rmfill.c +8 -29
- data/ext/RMagick/rmilist.c +3 -3
- data/ext/RMagick/rmimage.c +235 -143
- data/ext/RMagick/rminfo.c +12 -11
- data/ext/RMagick/rmmain.c +13 -12
- data/ext/RMagick/rmutil.c +27 -27
- data/lib/RMagick.rb +3 -3
- data/rmagick.gemspec +1 -1
- metadata +2 -3
- data/README.txt +0 -245
data/build_tarball.rake
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
# Specify a beta Release as beta=beta1
|
10
10
|
|
11
11
|
require 'rubygems'
|
12
|
-
require '
|
12
|
+
require 'redcloth'
|
13
13
|
require 'find'
|
14
14
|
require 'fileutils'
|
15
15
|
include FileUtils
|
@@ -93,19 +93,19 @@ end
|
|
93
93
|
|
94
94
|
|
95
95
|
|
96
|
-
task "README.
|
96
|
+
task "README.txt" do
|
97
97
|
Dir.chdir Dist_Directory do
|
98
|
-
reversion_file "README.
|
99
|
-
body = File.readlines "README.
|
100
|
-
body =
|
101
|
-
File.open("README.
|
98
|
+
reversion_file "README.rc"
|
99
|
+
body = File.readlines "README.rc"
|
100
|
+
body = RedCloth.new(body.join).to_html + "\n"
|
101
|
+
File.open("README.txt", "w") { |f| f.write body }
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
105
|
|
106
106
|
|
107
107
|
|
108
|
-
task README => "README.
|
108
|
+
task README => "README.txt" do
|
109
109
|
puts "writing #{README}"
|
110
110
|
Dir.chdir Dist_Directory do
|
111
111
|
File.open(README, "w") do |html|
|
@@ -115,11 +115,11 @@ task README => "README.bc" do
|
|
115
115
|
<head>
|
116
116
|
<title>RMagick #{RMagick_Version2} README</title>
|
117
117
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
118
|
-
<meta name="GENERATOR" content="
|
118
|
+
<meta name="GENERATOR" content="RedCloth">
|
119
119
|
</head>
|
120
120
|
<body>
|
121
121
|
END_HTML_HEAD
|
122
|
-
html.write File.readlines("README.
|
122
|
+
html.write File.readlines("README.txt")
|
123
123
|
html.write <<END_HTML_TAIL
|
124
124
|
</body>
|
125
125
|
</html>
|
@@ -146,7 +146,8 @@ task :fix_files do
|
|
146
146
|
Dir.chdir Dist_Directory do
|
147
147
|
rm_rf "test", :verbose => true
|
148
148
|
rm "lib/rvg/to_c.rb", :verbose => true
|
149
|
-
rm "README.
|
149
|
+
rm "README.rc", :verbose => true
|
150
|
+
rm "README.txt", :verbose => true
|
150
151
|
chmod 0644, FileList["doc/*.html", "doc/ex/*.rb", "doc/ex/images/*", "examples/*.rb"]
|
151
152
|
end
|
152
153
|
end
|
@@ -180,7 +181,7 @@ end
|
|
180
181
|
|
181
182
|
|
182
183
|
|
183
|
-
task :collateral => [
|
184
|
+
task :collateral => [README, :gemspec, :extconf, :doc]
|
184
185
|
|
185
186
|
GEM = Dist_Directory.downcase + ".gem"
|
186
187
|
|
data/doc/comtasks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: Common Tasks</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</head>
|
32
32
|
|
33
33
|
<body>
|
34
|
-
<h6 id="header">RMagick 2.
|
34
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
35
35
|
|
36
36
|
<div class="nav">
|
37
37
|
« <a href="optequiv.html">Prev</a> | <a href=
|
data/doc/constants.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: Constants</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</head>
|
62
62
|
|
63
63
|
<body>
|
64
|
-
<h6 id="header">RMagick 2.
|
64
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
data/doc/draw.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class Draw</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
28
|
-
<h6 id="header">RMagick 2.
|
28
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
data/doc/ex/get_type_metrics.rb
CHANGED
@@ -29,7 +29,7 @@ end
|
|
29
29
|
Origin_x = 110
|
30
30
|
Origin_y = 230
|
31
31
|
Glyph = 'g'
|
32
|
-
Face = RUBY_PLATFORM =~ /
|
32
|
+
Face = RUBY_PLATFORM =~ /mswin/ ? "Verdana" : "Times"
|
33
33
|
|
34
34
|
canvas = Magick::Image.new(410, 320, Magick::HatchFill.new('white', 'lightcyan2'))
|
35
35
|
|
data/doc/ex/wet_floor.rb
CHANGED
@@ -5,22 +5,22 @@ require 'RMagick'
|
|
5
5
|
|
6
6
|
results = Magick::ImageList.new
|
7
7
|
|
8
|
-
img = Magick::Image.new(270, 60)
|
8
|
+
img = Magick::Image.new(270, 60) {self.background_color = "black" }
|
9
9
|
|
10
10
|
gc = Magick::Draw.new
|
11
11
|
gc.annotate(img, 0, 0, 0, -15, "RUBY!") do
|
12
|
-
gc.fill = '#
|
13
|
-
gc.stroke = '
|
12
|
+
gc.fill = '#a00'
|
13
|
+
gc.stroke = '#f00'
|
14
14
|
gc.stroke_width = 2
|
15
15
|
gc.font_weight = Magick::BoldWeight
|
16
16
|
gc.gravity = Magick::SouthGravity
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
if RUBY_PLATFORM =~ /mswin32/
|
18
|
+
gc.font_family = "Georgia"
|
19
|
+
gc.pointsize = 76
|
20
|
+
else
|
21
|
+
gc.font_family = "times"
|
22
|
+
gc.pointsize = 80
|
23
|
+
end
|
24
24
|
end
|
25
25
|
|
26
26
|
# Add a little bit of shading
|
@@ -46,7 +46,7 @@ ilist[1] = ilist[1].affine_transform(xform)
|
|
46
46
|
results << ilist.append(true)
|
47
47
|
|
48
48
|
# Add a ripple
|
49
|
-
ilist[1] = ilist[1].rotate(90).wave(2,
|
49
|
+
ilist[1] = ilist[1].rotate(90).wave(2, 10).rotate(-90)
|
50
50
|
results << ilist.append(true)
|
51
51
|
|
52
52
|
# Montage into a single demo image. Use a white background so
|
@@ -54,6 +54,6 @@ results << ilist.append(true)
|
|
54
54
|
result = results.montage do
|
55
55
|
self.geometry = '270x120'
|
56
56
|
self.tile = '1x4'
|
57
|
-
self.background_color = '
|
57
|
+
self.background_color = 'black'
|
58
58
|
end
|
59
59
|
result.write('wet_floor.gif')
|
data/doc/ilist.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class ImageList</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</head>
|
21
21
|
|
22
22
|
<body>
|
23
|
-
<h6 id="header">RMagick 2.
|
23
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
24
24
|
|
25
25
|
<div class="nav">
|
26
26
|
« <a href="magick.html">Prev</a> | <a href=
|
data/doc/image1.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class Image (class methods and instance
|
10
10
|
methods a-d)</title>
|
11
11
|
<meta http-equiv="Content-Type" content=
|
12
12
|
"text/html; charset=us-ascii" />
|
@@ -48,7 +48,7 @@ float: left;
|
|
48
48
|
</head>
|
49
49
|
|
50
50
|
<body>
|
51
|
-
<h6 id="header">RMagick 2.
|
51
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
52
52
|
|
53
53
|
<div class="nav">
|
54
54
|
« <a href="imageattrs.html">Prev</a> | <a href=
|
@@ -1880,7 +1880,7 @@ img = Image.read_inline(content)
|
|
1880
1880
|
|
1881
1881
|
<p>The image's <em>bounding box</em>. The bounding box is the
|
1882
1882
|
rectangle that encloses all the pixels not in the border color.
|
1883
|
-
Uses the current <a href="#fuzz">fuzz</a> value.</p>
|
1883
|
+
Uses the current <a href="imageattrs.html#fuzz">fuzz</a> value.</p>
|
1884
1884
|
|
1885
1885
|
<h4>Returns</h4>A <a href="struct.html#Rectangle">Rectangle</a>
|
1886
1886
|
object.
|
data/doc/image2.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class Image (instance methods e-o)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -47,7 +47,7 @@ td.ds {
|
|
47
47
|
</head>
|
48
48
|
|
49
49
|
<body>
|
50
|
-
<h6 id="header">RMagick 2.
|
50
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
51
51
|
|
52
52
|
<div class="nav">
|
53
53
|
« <a href="image1.html">Prev</a> | <a href=
|
data/doc/image3.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class Image (instance methods p-w)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -51,7 +51,7 @@
|
|
51
51
|
</head>
|
52
52
|
|
53
53
|
<body>
|
54
|
-
<h6 id="header">RMagick 2.
|
54
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
55
55
|
|
56
56
|
<div class="nav">
|
57
57
|
« <a href="image2.html">Prev</a> | <a href=
|
data/doc/imageattrs.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.4.0: class Image (attribute methods)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
28
|
-
<h6 id="header">RMagick 2.
|
28
|
+
<h6 id="header">RMagick 2.4.0 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="ilist.html">Prev</a> | <a href=
|
@@ -198,7 +198,7 @@
|
|
198
198
|
<p>The image's background color. By default the background
|
199
199
|
color is "white".</p>
|
200
200
|
|
201
|
-
<h4>
|
201
|
+
<h4>Argument</h4>Either a <a href=
|
202
202
|
"imusage.html#color_names">color name</a> or a <a href=
|
203
203
|
"struct.html#Pixel">Pixel</a> object.
|
204
204
|
|
@@ -318,7 +318,7 @@
|
|
318
318
|
<h4>Description</h4>The image's border color. The default
|
319
319
|
border color is "#dfdfdf" (gray).
|
320
320
|
|
321
|
-
<h4>
|
321
|
+
<h4>Argument</h4>
|
322
322
|
|
323
323
|
<p>Either a <a href="imusage.html#color_names">color name</a>
|
324
324
|
or a <a href="struct.html#Pixel">Pixel</a> object.</p>
|
@@ -343,7 +343,7 @@
|
|
343
343
|
<p>The <span class="imquote">red, green, blue, and white-point
|
344
344
|
chromaticity values.</span>.</p>
|
345
345
|
|
346
|
-
<h4>
|
346
|
+
<h4>Argument</h4>A <a href=
|
347
347
|
"struct.html#Chromaticity">Chromaticity</a> object.
|
348
348
|
|
349
349
|
<h4>Returns</h4>A <a href=
|
@@ -367,7 +367,7 @@
|
|
367
367
|
If PseudoClass then the image has a colormap referenced by the
|
368
368
|
pixel's index member.</span></p>
|
369
369
|
|
370
|
-
<h4>
|
370
|
+
<h4>Argument</h4>
|
371
371
|
|
372
372
|
<p>A <a href="constants.html#ClassType">ClassType</a>
|
373
373
|
constant.</p>
|
@@ -393,7 +393,7 @@
|
|
393
393
|
<p>The <a href="http://www.color.org/icc_specs2.html">ICC color
|
394
394
|
profile</a>.</p>
|
395
395
|
|
396
|
-
<h4>
|
396
|
+
<h4>Argument</h4>
|
397
397
|
|
398
398
|
<p>A color profile is represented as a string. If the argument
|
399
399
|
is <code>nil</code> instead of <span class="arg">string</span>
|
@@ -452,7 +452,7 @@
|
|
452
452
|
CMYKColorspace, the pixels are cyan, yellow, magenta, black.
|
453
453
|
Otherwise the colorspace is ignored.</p>
|
454
454
|
|
455
|
-
<h4>
|
455
|
+
<h4>Argument</h4>
|
456
456
|
|
457
457
|
<p>A <a href="constants.html#ColorspaceType">ColorspaceType</a>
|
458
458
|
constant.</p>
|
@@ -492,7 +492,7 @@
|
|
492
492
|
OverCompositeOp. See <a href=
|
493
493
|
"ilist.html#montage">montage</a>.</p>
|
494
494
|
|
495
|
-
<h4>
|
495
|
+
<h4>Argument</h4>
|
496
496
|
|
497
497
|
<p>A <a href="constants.html#CompositeOperator">composite
|
498
498
|
operator</a> constant.</p>
|
@@ -516,7 +516,7 @@
|
|
516
516
|
<h4>Description</h4>The image compression type. The default is
|
517
517
|
the compression type of the specified image file.
|
518
518
|
|
519
|
-
<h4>
|
519
|
+
<h4>Argument</h4>
|
520
520
|
|
521
521
|
<p>A <a href=
|
522
522
|
"constants.html#CompressionType">CompressionType</a>
|
@@ -547,7 +547,7 @@
|
|
547
547
|
can be changed via the <a href=
|
548
548
|
"#ticks_per_second">ticks_per_second</a> attribute.</p>
|
549
549
|
|
550
|
-
<h4>
|
550
|
+
<h4>Argument</h4>An integer value between 0 and 65535,
|
551
551
|
inclusive.
|
552
552
|
|
553
553
|
<h4>Returns</h4>
|
@@ -570,7 +570,7 @@
|
|
570
570
|
<p>The <span class="imquote">vertical and horizontal resolution
|
571
571
|
in pixels of the image.</span> The default is "72x72".</p>
|
572
572
|
|
573
|
-
<h4>
|
573
|
+
<h4>Argument</h4>
|
574
574
|
|
575
575
|
<p>The density may be expressed either as a string or a
|
576
576
|
<a href="struct.html#Geometry">Geometry</a> object. If a
|
@@ -642,7 +642,7 @@
|
|
642
642
|
preceding image is disposed of) when creating a GIF
|
643
643
|
animation.</p>
|
644
644
|
|
645
|
-
<h4>
|
645
|
+
<h4>Argument</h4>
|
646
646
|
|
647
647
|
<p>An integer corresponding to the disposal method.</p>
|
648
648
|
|
@@ -665,7 +665,7 @@
|
|
665
665
|
<p>Get or set the endian attribute. <em>(As best I can tell,
|
666
666
|
only the TIFF format supports this attribute.)</em></p>
|
667
667
|
|
668
|
-
<h4>
|
668
|
+
<h4>Argument</h4>
|
669
669
|
|
670
670
|
<p>An <a href="constants.html#EndianType">EndianType</a>
|
671
671
|
value.</p>
|
@@ -692,7 +692,7 @@
|
|
692
692
|
rectangle specified when the image was constituted. See
|
693
693
|
<a href="info.html#extract">extract=</a>.</p>
|
694
694
|
|
695
|
-
<h4>
|
695
|
+
<h4>Argument</h4>
|
696
696
|
|
697
697
|
<p>A <a href="struct.html#Rectangle">Rectangle</a> object.</p>
|
698
698
|
|
@@ -745,7 +745,7 @@
|
|
745
745
|
default filter is Lanczos which has been shown to produce high
|
746
746
|
quality results when reducing most images.</p>
|
747
747
|
|
748
|
-
<h4>
|
748
|
+
<h4>Argument</h4>
|
749
749
|
|
750
750
|
<p>A <a href="constants.html#FilterTypes">FilterTypes</a>
|
751
751
|
constant.</p>
|
@@ -769,7 +769,7 @@
|
|
769
769
|
<p>The image encoding format. For example, "GIF" or "PNG". See
|
770
770
|
<a href="magick.html#formats">formats</a>.</p>
|
771
771
|
|
772
|
-
<h4>
|
772
|
+
<h4>Argument</h4>
|
773
773
|
|
774
774
|
<p>The format name.</p>
|
775
775
|
|
@@ -799,7 +799,7 @@
|
|
799
799
|
"image3.html#texture_floodfill">texture_floodfill</a>, and
|
800
800
|
<a href="image3.html#transparent">transparent</a>.</p>
|
801
801
|
|
802
|
-
<h4>
|
802
|
+
<h4>Argument</h4>
|
803
803
|
|
804
804
|
<p>The argument may be a floating-point numeric value or a
|
805
805
|
string in the form "NN%". In the second case, the argument is
|
@@ -845,7 +845,7 @@
|
|
845
845
|
<p class="imquote">Preferred size of the image when
|
846
846
|
encoding.</p>
|
847
847
|
|
848
|
-
<h4>
|
848
|
+
<h4>Argument</h4>
|
849
849
|
|
850
850
|
<p>A <a href="imusage.html#geometry">geometry string</a> or a
|
851
851
|
<a href="struct.html#Geometry">Geometry</a> object.</p>
|
@@ -858,9 +858,9 @@
|
|
858
858
|
<div class="sig">
|
859
859
|
<h3 id="gravity">gravity</h3>
|
860
860
|
|
861
|
-
<p
|
861
|
+
<p><span class="arg">img</span>.gravity ->
|
862
862
|
<em>gravity</em><br />
|
863
|
-
|
863
|
+
<span class="arg">img</span>.gravity = <span class=
|
864
864
|
"arg">gravity</span></p>
|
865
865
|
</div>
|
866
866
|
|
@@ -872,7 +872,12 @@
|
|
872
872
|
method. <span class="imquote">The direction that the image
|
873
873
|
gravitates within the composite.</span></p>
|
874
874
|
|
875
|
-
<h4>
|
875
|
+
<h4>Argument</h4>
|
876
|
+
|
877
|
+
<p>A <a href="constants.html#GravityType">GravityType</a>
|
878
|
+
value.</p>
|
879
|
+
|
880
|
+
<h4>Returns</h4>
|
876
881
|
|
877
882
|
<p>A <a href="constants.html#GravityType">GravityType</a>
|
878
883
|
value.</p>
|
@@ -882,7 +887,9 @@
|
|
882
887
|
<h3 id="image_type">image_type</h3>
|
883
888
|
|
884
889
|
<p><span class="arg">img.</span>image_type ->
|
885
|
-
<em>type</em
|
890
|
+
<em>type</em><br />
|
891
|
+
<span class="arg">img</span>.image_type = <span class=
|
892
|
+
"arg">type</span></p>
|
886
893
|
</div>
|
887
894
|
|
888
895
|
<div class="desc">
|
@@ -892,6 +899,11 @@
|
|
892
899
|
Don't confuse this attribute with the <a href=
|
893
900
|
"#format">format</a>, that is "GIF" or "JPG". Get-only.</p>
|
894
901
|
|
902
|
+
<h4>Argument</h4>
|
903
|
+
|
904
|
+
<p>An <a href="constants.html#ImageType">ImageType</a>
|
905
|
+
value.</p>
|
906
|
+
|
895
907
|
<h4>Returns</h4>
|
896
908
|
|
897
909
|
<p>An <a href="constants.html#ImageType">ImageType</a>
|
@@ -920,7 +932,7 @@
|
|
920
932
|
and image.B). Use LineInterlace or PlaneInterlace to create an
|
921
933
|
interlaced GIF or progressive JPEG image.</p>
|
922
934
|
|
923
|
-
<h4>
|
935
|
+
<h4>Argument</h4>
|
924
936
|
|
925
937
|
<p>An <a href="constants.html#InterlaceType">InterlaceType</a>
|
926
938
|
constant.</p>
|
@@ -946,7 +958,7 @@
|
|
946
958
|
<p>The <a href="http://www.iptc.org/IIM/">International Press
|
947
959
|
Telecommunications Council profile</a>.</p>
|
948
960
|
|
949
|
-
<h4>
|
961
|
+
<h4>Argument</h4>
|
950
962
|
|
951
963
|
<p>A IPTC profile is represented as a string. If the argument
|
952
964
|
is <code>nil</code> instead of <span class="arg">string</span>
|
@@ -1206,7 +1218,7 @@ blur_image is 100% complete.
|
|
1206
1218
|
are blended with the supplied transparency value.</span>
|
1207
1219
|
Set-only.</p>
|
1208
1220
|
|
1209
|
-
<h4>
|
1221
|
+
<h4>Argument</h4>A number between 0 and QuantumRange. Higher
|
1210
1222
|
numbers increase transparency.
|
1211
1223
|
</div>
|
1212
1224
|
|
@@ -1251,7 +1263,7 @@ blur_image is 100% complete.
|
|
1251
1263
|
"ilist.html#flatten_images">flatten_images</a>, and <a href=
|
1252
1264
|
"ilist.html#mosaic">mosaic</a>.</p>
|
1253
1265
|
|
1254
|
-
<h4>
|
1266
|
+
<h4>Argument</h4>
|
1255
1267
|
|
1256
1268
|
<p>A <a href="struct.html#Rectangle">Rectangle</a> object.</p>
|
1257
1269
|
|
@@ -1350,7 +1362,7 @@ blur_image is 100% complete.
|
|
1350
1362
|
"http://www.cambridgeincolour.com/tutorials/color-space-conversion.htm">
|
1351
1363
|
http://www.cambridgeincolour.com/tutorials/color-space-conversion.htm</a></p>
|
1352
1364
|
|
1353
|
-
<h4>
|
1365
|
+
<h4>Argument</h4>
|
1354
1366
|
|
1355
1367
|
<p>A <a href=
|
1356
1368
|
"constants.html#RenderingIntent">RenderingIntent</a>
|
@@ -1457,7 +1469,7 @@ blur_image is 100% complete.
|
|
1457
1469
|
|
1458
1470
|
<p class="imquote">Units of image resolution.</p>
|
1459
1471
|
|
1460
|
-
<h4>
|
1472
|
+
<h4>Argument</h4>
|
1461
1473
|
|
1462
1474
|
<p>A <a href="constants.html#ResolutionType">ResolutionType</a>
|
1463
1475
|
constant.</p>
|
@@ -1491,7 +1503,7 @@ blur_image is 100% complete.
|
|
1491
1503
|
<a href="image3.html#sharpen">sharpen</a>, and <a href=
|
1492
1504
|
"image3.html#wave">wave</a> use virtual pixels.</p>
|
1493
1505
|
|
1494
|
-
<h4>
|
1506
|
+
<h4>Argument</h4>
|
1495
1507
|
|
1496
1508
|
<p>The virtual pixel method can be any one of the following
|
1497
1509
|
<code>VirtualPixelMethod</code> constants:</p>
|