rmagick 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +10 -2
- data/README.html +284 -290
- data/README.txt +298 -307
- data/configure +180 -11
- data/configure.ac +18 -2
- data/doc/comtasks.html +1 -1
- data/doc/constants.html +15 -10
- data/doc/css/ref.css +67 -0
- data/doc/draw.html +1 -1
- data/doc/ex/InitialCoords.rb +24 -0
- data/doc/ex/NewCoordSys.rb +33 -0
- data/doc/ex/OrigCoordSys.rb +19 -0
- data/doc/ex/PreserveAspectRatio.rb +206 -0
- data/doc/ex/RotateScale.rb +38 -0
- data/doc/ex/Skew.rb +39 -0
- data/doc/ex/Use01.rb +17 -0
- data/doc/ex/Use02.rb +22 -0
- data/doc/ex/Use03.rb +17 -0
- data/doc/ex/ViewBox.rb +34 -0
- data/doc/ex/arcs01.rb +29 -0
- data/doc/ex/arcs02.rb +62 -0
- data/doc/ex/baseline_shift01.rb +19 -0
- data/doc/ex/bounding_box.rb +31 -37
- data/doc/ex/circle01.rb +18 -0
- data/doc/ex/cubic01.rb +46 -0
- data/doc/ex/cubic02.rb +95 -0
- data/doc/ex/drop_shadow.rb +1 -1
- data/doc/ex/ellipse01.rb +23 -0
- data/doc/ex/evenodd.rb +44 -0
- data/doc/ex/font_styles.rb +29 -0
- data/doc/ex/group.rb +27 -0
- data/doc/ex/image.rb +47 -0
- data/doc/ex/images/big-duck.gif +0 -0
- data/doc/ex/images/duck.gif +0 -0
- data/doc/ex/images/duck0.gif +0 -0
- data/doc/ex/images/duck1.gif +0 -0
- data/doc/ex/images/duck10.gif +0 -0
- data/doc/ex/images/duck11.gif +0 -0
- data/doc/ex/images/duck12.gif +0 -0
- data/doc/ex/images/duck13.gif +0 -0
- data/doc/ex/images/duck14.gif +0 -0
- data/doc/ex/images/duck15.gif +0 -0
- data/doc/ex/images/duck2.gif +0 -0
- data/doc/ex/images/duck3.gif +0 -0
- data/doc/ex/images/duck4.gif +0 -0
- data/doc/ex/images/duck5.gif +0 -0
- data/doc/ex/images/duck6.gif +0 -0
- data/doc/ex/images/duck7.gif +0 -0
- data/doc/ex/images/duck8.gif +0 -0
- data/doc/ex/images/duck9.gif +0 -0
- data/doc/ex/line01.rb +24 -0
- data/doc/ex/nested_rvg.rb +22 -0
- data/doc/ex/nonzero.rb +44 -0
- data/doc/ex/polygon01.rb +24 -0
- data/doc/ex/polyline01.rb +24 -0
- data/doc/ex/quad01.rb +37 -0
- data/doc/ex/rect01.rb +16 -0
- data/doc/ex/rect02.rb +23 -0
- data/doc/ex/rvg_clippath.rb +15 -0
- data/doc/ex/rvg_linecap.rb +44 -0
- data/doc/ex/rvg_linejoin.rb +42 -0
- data/doc/ex/rvg_opacity.rb +20 -0
- data/doc/ex/rvg_pattern.rb +27 -0
- data/doc/ex/rvg_stroke_dasharray.rb +13 -0
- data/doc/ex/sepiatone.rb +15 -0
- data/doc/ex/shadow.rb +37 -0
- data/doc/ex/smile.rb +9 -9
- data/doc/ex/stroke_fill.rb +12 -0
- data/doc/ex/text01.rb +18 -0
- data/doc/ex/text_styles.rb +22 -0
- data/doc/ex/texture_fill_to_border.rb +3 -3
- data/doc/ex/texture_floodfill.rb +3 -2
- data/doc/ex/tref01.rb +26 -0
- data/doc/ex/triangle01.rb +17 -0
- data/doc/ex/tspan01.rb +19 -0
- data/doc/ex/tspan02.rb +20 -0
- data/doc/ex/tspan03.rb +22 -0
- data/doc/ex/writing_mode01.rb +28 -0
- data/doc/ex/writing_mode02.rb +27 -0
- data/doc/ilist.html +1 -1
- data/doc/image1.html +66 -30
- data/doc/image2.html +1 -1
- data/doc/image3.html +274 -49
- data/doc/imageattrs.html +87 -10
- data/doc/imusage.html +1 -1
- data/doc/index.html +80 -39
- data/doc/info.html +149 -13
- data/doc/magick.html +1 -1
- data/doc/rvg.html +890 -0
- data/doc/rvgclip.html +249 -0
- data/doc/rvggroup.html +305 -0
- data/doc/rvgimage.html +288 -0
- data/doc/rvgpattern.html +456 -0
- data/doc/rvgshape.html +376 -0
- data/doc/rvgstyle.html +269 -0
- data/doc/rvgtext.html +464 -0
- data/doc/rvgtspan.html +237 -0
- data/doc/rvgtut.html +512 -0
- data/doc/rvguse.html +145 -0
- data/doc/rvgxform.html +294 -0
- data/doc/struct.html +9 -71
- data/doc/usage.html +22 -7
- data/ext/RMagick/MANIFEST +94 -2
- data/ext/RMagick/rmagick.h +10 -4
- data/ext/RMagick/rmagick_config.h.in +8 -2
- 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 +152 -5
- data/ext/RMagick/rminfo.c +208 -2
- data/ext/RMagick/rmmain.c +14 -5
- data/ext/RMagick/rmutil.c +83 -22
- data/lib/RMagick.rb +2 -2
- data/lib/rvg/clippath.rb +46 -0
- data/lib/rvg/container.rb +129 -0
- data/lib/rvg/deep_equal.rb +54 -0
- data/lib/rvg/describable.rb +51 -0
- data/lib/rvg/embellishable.rb +395 -0
- data/lib/rvg/misc.rb +729 -0
- data/lib/rvg/paint.rb +48 -0
- data/lib/rvg/pathdata.rb +129 -0
- data/lib/rvg/rvg.rb +279 -0
- data/lib/rvg/stretchable.rb +150 -0
- data/lib/rvg/stylable.rb +116 -0
- data/lib/rvg/text.rb +185 -0
- data/lib/rvg/transformable.rb +131 -0
- data/lib/rvg/units.rb +64 -0
- data/rmagick.gemspec +1 -1
- data/uninstall.rb +3 -2
- metadata +96 -3
data/doc/image2.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
13
13
|
<meta name="Copyright" content=
|
14
|
-
"Copyright (C)
|
14
|
+
"Copyright (C) 2005 by Timothy P. Hunter" />
|
15
15
|
<link rel="stylesheet" type="text/css" href="css/doc.css" />
|
16
16
|
<script type="text/javascript" src="scripts/doc.js">
|
17
17
|
</script>
|
data/doc/image3.html
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for Linux/x86 (vers 1st
|
7
|
+
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
9
|
<title>RMagick: class Image (instance methods, part 3)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
13
13
|
<meta name="Copyright" content=
|
14
|
-
"Copyright (C)
|
14
|
+
"Copyright (C) 2005 by Timothy P. Hunter" />
|
15
15
|
<link rel="stylesheet" type="text/css" href="css/doc.css" />
|
16
16
|
<script type="text/javascript" src="scripts/doc.js">
|
17
17
|
</script>
|
@@ -105,20 +105,24 @@
|
|
105
105
|
<li><a href="#sample_bang">sample!</a></li>
|
106
106
|
|
107
107
|
<li><a href="#scale">scale</a></li>
|
108
|
+
|
109
|
+
<li><a href="#scale_bang">scale!</a></li>
|
108
110
|
</ul>
|
109
111
|
</div>
|
110
112
|
|
111
113
|
<div class="toccol">
|
112
114
|
<ul>
|
113
|
-
<li><a href="#scale_bang">scale!</a></li>
|
114
|
-
|
115
115
|
<li><a href="#segment">segment</a></li>
|
116
116
|
|
117
|
+
<li><a href="#sepiatone">sepiatone</a></li>
|
118
|
+
|
117
119
|
<li><a href=
|
118
120
|
"#set_channel_depth">set_channel_depth</a></li>
|
119
121
|
|
120
122
|
<li><a href="#shade">shade</a></li>
|
121
123
|
|
124
|
+
<li><a href="#shadow">shadow</a></li>
|
125
|
+
|
122
126
|
<li><a href="#sharpen">sharpen</a></li>
|
123
127
|
|
124
128
|
<li><a href="#sharpen_channel">sharpen_channel</a></li>
|
@@ -129,6 +133,9 @@
|
|
129
133
|
|
130
134
|
<li><a href="#shear">shear</a></li>
|
131
135
|
|
136
|
+
<li><a href=
|
137
|
+
"#sigmoidal_contrast_channel">sigmoidal_contrast_channel</a></li>
|
138
|
+
|
132
139
|
<li><a href="#signature">signature</a></li>
|
133
140
|
|
134
141
|
<li><a href="#solarize">solarize</a></li>
|
@@ -142,13 +149,13 @@
|
|
142
149
|
<li><a href="#stegano">stegano</a></li>
|
143
150
|
|
144
151
|
<li><a href="#stereo">stereo</a></li>
|
145
|
-
|
146
|
-
<li><a href="#store_pixels">store_pixels</a></li>
|
147
152
|
</ul>
|
148
153
|
</div>
|
149
154
|
|
150
155
|
<div class="toccol">
|
151
156
|
<ul>
|
157
|
+
<li><a href="#store_pixels">store_pixels</a></li>
|
158
|
+
|
152
159
|
<li><a href="#strip_bang">strip!</a></li>
|
153
160
|
|
154
161
|
<li><a href="#swirl">swirl</a></li>
|
@@ -376,8 +383,10 @@
|
|
376
383
|
<p>If called without a block, returns a hash, otherwise returns
|
377
384
|
<code>self</code>.</p>
|
378
385
|
|
379
|
-
<h4>See also</h4
|
380
|
-
|
386
|
+
<h4>See also</h4>
|
387
|
+
|
388
|
+
<p><a href="image1.html#aref">[ ]</a>, <a href=
|
389
|
+
"image1.html#aset">[ ]=</a></p>
|
381
390
|
|
382
391
|
<h4>Note</h4>
|
383
392
|
|
@@ -584,9 +593,10 @@ img.quantum_operator(DivideQuantumOp, 2, RedChannel)
|
|
584
593
|
"Mouse over the example to see the original image" /></p>
|
585
594
|
|
586
595
|
<h4>See also</h4>
|
587
|
-
|
588
|
-
<a href="
|
589
|
-
|
596
|
+
|
597
|
+
<p><a href="image1.html#blur_image">blur_image</a>, <a href=
|
598
|
+
"image2.html#gaussian_blur">gaussian_blur</a>, <a href=
|
599
|
+
"image2.html#motion_blur">motion_blur</a></p>
|
590
600
|
|
591
601
|
<h4>Magick API</h4>
|
592
602
|
|
@@ -705,7 +715,9 @@ random_threshold_channel(geom, RedChannel)
|
|
705
715
|
"ex/images/spin.gif" alt="" class="spin" title=
|
706
716
|
"Mouse over the example to see the original image" /></p>
|
707
717
|
|
708
|
-
<h4>See also</h4
|
718
|
+
<h4>See also</h4>
|
719
|
+
|
720
|
+
<p><a href=
|
709
721
|
"image1.html#adaptive_threshold">adaptive_threshold</a>,
|
710
722
|
<a href="image1.html#channel_threshold">channel_threshold</a>,
|
711
723
|
<a href="#threshold">threshold</a></p>
|
@@ -950,12 +962,12 @@ random_threshold_channel(geom, RedChannel)
|
|
950
962
|
id="notrotated" onmouseout=
|
951
963
|
"this.style.display='none'; rotated.style.display='';" src=
|
952
964
|
"ex/images/Flower_Hat.jpg" alt="rotate example" title=
|
953
|
-
"Click to see the example script"
|
965
|
+
"Click to see the example script" name="notrotated" /><!--
|
954
966
|
This img tag displays the rotated image.
|
955
967
|
--><img class="hide"
|
956
968
|
id="rotated" onmouseover=
|
957
969
|
"this.style.display='none'; notrotated.style.display='';" src=
|
958
|
-
"ex/rotate_f.jpg" alt="rotate example"
|
970
|
+
"ex/rotate_f.jpg" alt="rotate example" name="rotated" /></a>
|
959
971
|
<img src="ex/images/spin.gif" alt="" class="spin" style=
|
960
972
|
"left:322px;" title=
|
961
973
|
"Mouse over the example to see the original image" /></p>
|
@@ -1093,7 +1105,9 @@ random_threshold_channel(geom, RedChannel)
|
|
1093
1105
|
|
1094
1106
|
<p>A new image</p>
|
1095
1107
|
|
1096
|
-
<h4>See also</h4
|
1108
|
+
<h4>See also</h4>
|
1109
|
+
|
1110
|
+
<p><a href="#scale_bang">scale!</a>, <a href=
|
1097
1111
|
"image2.html#magnify">magnify</a>, <a href=
|
1098
1112
|
"image2.html#minify">minify</a>, <a href="#resize">resize</a>,
|
1099
1113
|
<a href="#sample">sample</a>, <a href=
|
@@ -1194,6 +1208,56 @@ random_threshold_channel(geom, RedChannel)
|
|
1194
1208
|
<p>SegmentImage</p>
|
1195
1209
|
</div>
|
1196
1210
|
|
1211
|
+
<div class="sig">
|
1212
|
+
<h3 id="sepiatone">sepiatone</h3>
|
1213
|
+
|
1214
|
+
<p><span class="arg">image</span>.sepiatone(<span class=
|
1215
|
+
"arg">threshold</span>=MaxRGB) -> <span class=
|
1216
|
+
"arg">anImage</span></p>
|
1217
|
+
</div>
|
1218
|
+
|
1219
|
+
<div class="desc">
|
1220
|
+
<h4>Description</h4>
|
1221
|
+
|
1222
|
+
<p class="imquote">Applies a special effect to the image,
|
1223
|
+
similar to the effect achieved in a photo darkroom by sepia
|
1224
|
+
toning.</p>
|
1225
|
+
|
1226
|
+
<h4>Arguments</h4>
|
1227
|
+
|
1228
|
+
<dl>
|
1229
|
+
<dt>threshold</dt>
|
1230
|
+
|
1231
|
+
<dd class="imquote"><span class="arg">Threshold</span> ranges
|
1232
|
+
from 0 to <code>MaxRGB</code> and is a measure of the extent
|
1233
|
+
of the sepia toning. A threshold of 80% is a good starting
|
1234
|
+
point for a reasonable tone. The default is MaxRGB.</dd>
|
1235
|
+
</dl>
|
1236
|
+
|
1237
|
+
<h4>Returns</h4>
|
1238
|
+
|
1239
|
+
<p>self</p>
|
1240
|
+
|
1241
|
+
<h4>Example</h4>
|
1242
|
+
|
1243
|
+
<p class="rollover"><a href=
|
1244
|
+
"javascript:popup('sepiatone.rb.html')"><img src=
|
1245
|
+
"ex/sepiatone.jpg" alt="sepiatone example" onmouseover=
|
1246
|
+
"this.src='ex/images/Flower_Hat.jpg'" onmouseout=
|
1247
|
+
"this.src='ex/sepiatone.jpg'" title=
|
1248
|
+
"Click to see the example script" /></a> <img src=
|
1249
|
+
"ex/images/spin.gif" alt="" class="spin" title=
|
1250
|
+
"Mouse over the example to see the original image" /></p>
|
1251
|
+
|
1252
|
+
<h4>See also</h4>
|
1253
|
+
|
1254
|
+
<p><a href="image1.html#colorize">colorize</a></p>
|
1255
|
+
|
1256
|
+
<h4>Magick API</h4>
|
1257
|
+
|
1258
|
+
<p>SepiaToneImage (available in ImageMagick 6.2.1)</p>
|
1259
|
+
</div>
|
1260
|
+
|
1197
1261
|
<div class="sig">
|
1198
1262
|
<h3 id="set_channel_depth">set_channel_depth</h3>
|
1199
1263
|
|
@@ -1225,8 +1289,9 @@ random_threshold_channel(geom, RedChannel)
|
|
1225
1289
|
|
1226
1290
|
<p>self</p>
|
1227
1291
|
|
1228
|
-
<h4>See also</h4
|
1229
|
-
|
1292
|
+
<h4>See also</h4>
|
1293
|
+
|
1294
|
+
<p><a href="image1.html#channel_depth">channel_depth</a></p>
|
1230
1295
|
|
1231
1296
|
<h4>Magick API</h4>
|
1232
1297
|
|
@@ -1289,6 +1354,82 @@ random_threshold_channel(geom, RedChannel)
|
|
1289
1354
|
<p>ShadeImage</p>
|
1290
1355
|
</div>
|
1291
1356
|
|
1357
|
+
<div class="sig">
|
1358
|
+
<h3 id="shadow">shadow</h3>
|
1359
|
+
|
1360
|
+
<p><span class="arg">image</span>.shadow(<span class=
|
1361
|
+
"arg">x_offset=4</span>, <span class="arg">y_offset=4</span>,
|
1362
|
+
<span class="arg">sigma=4.0</span>, <span class=
|
1363
|
+
"arg">opacity=1.0</span>) -> <em>anImage</em></p>
|
1364
|
+
</div>
|
1365
|
+
|
1366
|
+
<div class="desc">
|
1367
|
+
<h4>Description</h4>Draws the shadow of opaque parts of the
|
1368
|
+
image. This method only works when the image has opaque parts
|
1369
|
+
and transparent parts. Note that the resulting image is just
|
1370
|
+
the shadow. You must composite the original image over the
|
1371
|
+
shadow to produce the shadowed results.
|
1372
|
+
|
1373
|
+
<h4>Arguments</h4>
|
1374
|
+
|
1375
|
+
<dl>
|
1376
|
+
<dt>x_offset</dt>
|
1377
|
+
|
1378
|
+
<dd>The shadow x-offset</dd>
|
1379
|
+
|
1380
|
+
<dt>y_offset</dt>
|
1381
|
+
|
1382
|
+
<dd>The shadow y-offset</dd>
|
1383
|
+
|
1384
|
+
<dt>sigma</dt>
|
1385
|
+
|
1386
|
+
<dd>The standard deviation of the Gaussian operator used to
|
1387
|
+
produce the shadow. The higher the number, the "blurrier" the
|
1388
|
+
shadow, but the longer it takes to produce the shadow. Must
|
1389
|
+
be > 0.0.</dd>
|
1390
|
+
|
1391
|
+
<dt>opacity</dt>
|
1392
|
+
|
1393
|
+
<dd>The percent opacity of the shadow. May be either a number
|
1394
|
+
between 0.1 and 1.0, or a string in the form "NN%" between
|
1395
|
+
"1%" and "100%". If the percentage is greater than 100 it is
|
1396
|
+
reduced to 100.</dd>
|
1397
|
+
</dl>
|
1398
|
+
|
1399
|
+
<h4>Returns</h4>
|
1400
|
+
|
1401
|
+
<p>A new image</p>
|
1402
|
+
|
1403
|
+
<h4>Example</h4>
|
1404
|
+
|
1405
|
+
<p class="rollover"><a href=
|
1406
|
+
"javascript:popup('shadow.rb.html')">
|
1407
|
+
<!-- This img tag displays the original image when the mouse is over -->
|
1408
|
+
<img style="padding:8px; display:none" id="shadowless"
|
1409
|
+
onmouseout=
|
1410
|
+
"this.style.display='none';shadowed.style.display='';" src=
|
1411
|
+
"ex/shadow_before.gif" alt="shadow example" title=
|
1412
|
+
"Click to see the example script" name="shadowless" /><!--
|
1413
|
+
This img tag displays the shadowed image when the mouse is not over
|
1414
|
+
--><img class="hide"
|
1415
|
+
id="shadowed" onmouseover=
|
1416
|
+
"this.style.display='none';shadowless.style.display='';" src=
|
1417
|
+
"ex/shadow_after.gif" alt="shadow example" name=
|
1418
|
+
"shadowed" /></a> <img src="ex/images/spin.gif" alt="" style=
|
1419
|
+
"margin-bottom: 120px" title=
|
1420
|
+
"Mouse over the example to see the original image" /></p>
|
1421
|
+
|
1422
|
+
<h4>Magick API</h4>
|
1423
|
+
|
1424
|
+
<p>ShadowImage (available in ImageMagick 6.1.7)</p>
|
1425
|
+
|
1426
|
+
<h4>Notes</h4>
|
1427
|
+
|
1428
|
+
<p>The shadow image is 2×<span class="arg">sigma</span>
|
1429
|
+
pixels larger on a side than the original image, as can be seen
|
1430
|
+
in the example above.</p>
|
1431
|
+
</div>
|
1432
|
+
|
1292
1433
|
<div class="sig">
|
1293
1434
|
<h3 id="sharpen">sharpen</h3>
|
1294
1435
|
|
@@ -1412,7 +1553,9 @@ random_threshold_channel(geom, RedChannel)
|
|
1412
1553
|
"ex/images/spin.gif" alt="" class="spin" title=
|
1413
1554
|
"Mouse over the example to see the original image" /></p>
|
1414
1555
|
|
1415
|
-
<h4>See also</h4
|
1556
|
+
<h4>See also</h4>
|
1557
|
+
|
1558
|
+
<p><a href="#shave_bang">shave!</a>, <a href=
|
1416
1559
|
"image1.html#crop">crop</a></p>
|
1417
1560
|
|
1418
1561
|
<h4>Magick API</h4>
|
@@ -1479,24 +1622,89 @@ random_threshold_channel(geom, RedChannel)
|
|
1479
1622
|
id="noshear" onmouseout=
|
1480
1623
|
"this.style.display='none'; sheared.style.display='';" src=
|
1481
1624
|
"ex/images/Flower_Hat.jpg" alt="shear example" title=
|
1482
|
-
"Click to see the example script"
|
1625
|
+
"Click to see the example script" name="noshear" /> <!--
|
1483
1626
|
This img tag displays the sheared image when the mouse is not over
|
1484
1627
|
-->
|
1485
1628
|
<img id="sheared" onmouseover=
|
1486
1629
|
"this.style.display='none'; noshear.style.display='';" src=
|
1487
|
-
"ex/shear.jpg" alt="shear example"
|
1630
|
+
"ex/shear.jpg" alt="shear example" name=
|
1631
|
+
"sheared" /></a><img src="ex/images/spin.gif" alt="" class=
|
1488
1632
|
"spin" style="left: 253px; top: 34px" title=
|
1489
1633
|
"Mouse over the example to see the original image" /></p>
|
1490
1634
|
|
1491
|
-
<h4>See also</h4
|
1492
|
-
|
1493
|
-
"#
|
1635
|
+
<h4>See also</h4>
|
1636
|
+
|
1637
|
+
<p><a href="image1.html#affine_transform">affine_transform</a>,
|
1638
|
+
<a href="#rotate">rotate</a></p>
|
1494
1639
|
|
1495
1640
|
<h4>Magick API</h4>
|
1496
1641
|
|
1497
1642
|
<p>ShearImage</p>
|
1498
1643
|
</div>
|
1499
1644
|
|
1645
|
+
<div class="sig">
|
1646
|
+
<h3 id="sigmoidal_contrast_channel">
|
1647
|
+
sigmoidal_contrast_channel</h3>
|
1648
|
+
|
1649
|
+
<p><br />
|
1650
|
+
<span class=
|
1651
|
+
"arg">image</span>.sigmoidal_contrast_channel(<span class=
|
1652
|
+
"arg">contrast</span>=3.0, <span class=
|
1653
|
+
"arg">midpoint</span>=50.0, <span class=
|
1654
|
+
"arg">sharpen</span>=false[,<span class="arg"><span class=
|
1655
|
+
"arg">channel</span></span>, <span class="arg"><span class=
|
1656
|
+
"arg">channel</span></span>...] -> anImage</p>
|
1657
|
+
</div>
|
1658
|
+
|
1659
|
+
<div class="desc">
|
1660
|
+
<h4>Description</h4>
|
1661
|
+
|
1662
|
+
<p class="imquote">Adjusts the contrast of an image channel
|
1663
|
+
with a non-linear sigmoidal contrast algorithm. Increases the
|
1664
|
+
contrast of the image using a sigmoidal transfer function
|
1665
|
+
without saturating highlights or shadows.</p>
|
1666
|
+
|
1667
|
+
<h4>Arguments</h4>
|
1668
|
+
|
1669
|
+
<dl>
|
1670
|
+
<dt>contrast</dt>
|
1671
|
+
|
1672
|
+
<dd class="imquote">indicates how much to increase the
|
1673
|
+
contrast (0 is none; 3 is typical; 20 is pushing it)</dd>
|
1674
|
+
|
1675
|
+
<dt>midpoint</dt>
|
1676
|
+
|
1677
|
+
<dd class="imquote">indicates where midtones fall in the
|
1678
|
+
resultant image (0 is white; 50% is middle-gray; 100% is
|
1679
|
+
black)</dd>
|
1680
|
+
|
1681
|
+
<dt>sharpen</dt>
|
1682
|
+
|
1683
|
+
<dd class="imquote">Set <span class="arg">sharpen</span> to
|
1684
|
+
<code>true</code> to increase the image contrast otherwise
|
1685
|
+
the contrast is reduced.</dd>
|
1686
|
+
|
1687
|
+
<dt>channel...</dt>
|
1688
|
+
|
1689
|
+
<dd>0 or more <a href=
|
1690
|
+
"constants.html#ChannelType">ChannelType</a> arguments. If no
|
1691
|
+
channels are specified, all the channels are adjusted.</dd>
|
1692
|
+
</dl>
|
1693
|
+
|
1694
|
+
<h4>Returns</h4>
|
1695
|
+
|
1696
|
+
<p>A new image</p>
|
1697
|
+
|
1698
|
+
<h4>See also</h4>
|
1699
|
+
|
1700
|
+
<p><a href="image1.html#contrast">contrast</a></p>
|
1701
|
+
|
1702
|
+
<h4>Magick API</h4>
|
1703
|
+
|
1704
|
+
<p>SigmoidalContrastImageChannel (available in ImageMagick
|
1705
|
+
6.2.1)</p>
|
1706
|
+
</div>
|
1707
|
+
|
1500
1708
|
<div class="sig">
|
1501
1709
|
<h3 id="signature">signature</h3>
|
1502
1710
|
|
@@ -1533,8 +1741,10 @@ img.properties »
|
|
1533
1741
|
"comment"=>"File written by Adobe Photoshop\250 4.0"}
|
1534
1742
|
</pre>
|
1535
1743
|
|
1536
|
-
<h4>See also</h4
|
1537
|
-
|
1744
|
+
<h4>See also</h4>
|
1745
|
+
|
1746
|
+
<p><a href="image1.html#spaceship"><=></a>, <a href=
|
1747
|
+
"image1.html#difference">difference</a></p>
|
1538
1748
|
|
1539
1749
|
<h4>Magick API</h4>
|
1540
1750
|
|
@@ -1587,12 +1797,12 @@ img.properties »
|
|
1587
1797
|
id="nosplice" onmouseout=
|
1588
1798
|
"this.style.display='none';spliced.style.display='';" src=
|
1589
1799
|
"ex/images/Flower_Hat.jpg" alt="splice example" title=
|
1590
|
-
"Click to see the example script"
|
1800
|
+
"Click to see the example script" name="nosplice" /><!--
|
1591
1801
|
This img tag displays the spliced image when the mouse is not over
|
1592
1802
|
--><img class="hide"
|
1593
1803
|
id="spliced" onmouseover=
|
1594
1804
|
"this.style.display='none';nosplice.style.display='';" src=
|
1595
|
-
"ex/splice.jpg" alt="splice example"
|
1805
|
+
"ex/splice.jpg" alt="splice example" name="spliced" /></a>
|
1596
1806
|
<img src="ex/images/spin.gif" alt="" style=
|
1597
1807
|
"margin-bottom: 280px" title=
|
1598
1808
|
"Mouse over the example to see the original image" /></p>
|
@@ -1893,8 +2103,11 @@ p stats.red.stddev » 0.231399683489667
|
|
1893
2103
|
<p>Also see the example for <a href=
|
1894
2104
|
"image2.html#get_pixels"><code>get_pixels</code></a>.</p>
|
1895
2105
|
|
1896
|
-
|
1897
|
-
|
2106
|
+
<h4>See also</h4>
|
2107
|
+
|
2108
|
+
<p><a href="image1.html#constitute">constitute</a>, <a href=
|
2109
|
+
"image2.html#get_pixels">get_pixels</a>, <a href=
|
2110
|
+
"#view">view</a></p>
|
1898
2111
|
|
1899
2112
|
<h4>Magick API</h4>
|
1900
2113
|
|
@@ -2003,8 +2216,9 @@ p stats.red.stddev » 0.231399683489667
|
|
2003
2216
|
<h4>Example</h4>
|
2004
2217
|
|
2005
2218
|
<p>In this example the target is the pixel in the center of the
|
2006
|
-
image. The
|
2007
|
-
|
2219
|
+
image. The texture - in this case a picture of a girl in a
|
2220
|
+
flowered hat - replaces this pixel and its neighbors until
|
2221
|
+
reaching a black pixel. Mouse over the image to see the
|
2008
2222
|
original image. Notice the plum-colored circles are replaced as
|
2009
2223
|
well. Compare this result with the result of
|
2010
2224
|
<code>texture_floodfill</code>, below.</p>
|
@@ -2019,7 +2233,9 @@ p stats.red.stddev » 0.231399683489667
|
|
2019
2233
|
"ex/images/spin.gif" alt="" class="spin" style="left:206px;"
|
2020
2234
|
title="Mouse over the example to see the original image" /></p>
|
2021
2235
|
|
2022
|
-
<h4>See also</h4
|
2236
|
+
<h4>See also</h4>
|
2237
|
+
|
2238
|
+
<p><a href=
|
2023
2239
|
"image1.html#color_fill_to_border">color_fill_to_border</a>,
|
2024
2240
|
<a href=
|
2025
2241
|
"image2.html#matte_fill_to_border">matte_fill_to_border</a></p>
|
@@ -2069,11 +2285,12 @@ p stats.red.stddev » 0.231399683489667
|
|
2069
2285
|
<h4>Example</h4>
|
2070
2286
|
|
2071
2287
|
<p>In this example the target is the pixel in the center of the
|
2072
|
-
image. The
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
<code>texture_fill_to_border</code>,
|
2288
|
+
image. The texture - in this case a picture of a girl in a
|
2289
|
+
flowered hat - replaces this pixel and its same-colored
|
2290
|
+
neighbors. Mouse over the image to see the original image.
|
2291
|
+
Notice the plum-colored circles are not replaced. Compare this
|
2292
|
+
result with the result of <code>texture_fill_to_border</code>,
|
2293
|
+
above.</p>
|
2077
2294
|
|
2078
2295
|
<p class="rollover"><a href=
|
2079
2296
|
"javascript:popup('texture_floodfill.rb.html')"><img src=
|
@@ -2189,9 +2406,11 @@ img = Magick::Image.read("images/Cheetah.jpg").first
|
|
2189
2406
|
thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
2190
2407
|
</pre>
|
2191
2408
|
|
2192
|
-
<h4>See also</h4
|
2193
|
-
|
2194
|
-
<a href="#
|
2409
|
+
<h4>See also</h4>
|
2410
|
+
|
2411
|
+
<p><a href="image2.html#minify">minify</a>, <a href=
|
2412
|
+
"#resize">resize</a>, <a href="#sample">sample</a>, <a href=
|
2413
|
+
"#scale">scale</a></p>
|
2195
2414
|
|
2196
2415
|
<h4>Magick API</h4>ThumbnailImage (available in ImageMagick
|
2197
2416
|
5.5.2)
|
@@ -2252,7 +2471,9 @@ thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
|
2252
2471
|
"ex/to_blob.gif" alt="to_blob example" title=
|
2253
2472
|
"Click to see the example script" /></a></p>
|
2254
2473
|
|
2255
|
-
<h4>See also</h4
|
2474
|
+
<h4>See also</h4>
|
2475
|
+
|
2476
|
+
<p><a href="image1.html#Ifrom_blob">from_blob</a></p>
|
2256
2477
|
|
2257
2478
|
<h4>Magick API</h4>
|
2258
2479
|
|
@@ -2476,8 +2697,10 @@ img.to_color(pixel)
|
|
2476
2697
|
alt="unsharp_mask example" title=
|
2477
2698
|
"Click to see the example script" /></a></p>
|
2478
2699
|
|
2479
|
-
<h4>See also</h4
|
2480
|
-
|
2700
|
+
<h4>See also</h4>
|
2701
|
+
|
2702
|
+
<p><a href="image1.html#enhance">enhance</a>, <a href=
|
2703
|
+
"image2.html#median_filter">median_filter</a>, <a href=
|
2481
2704
|
"image3.html#reduce_noise">reduce_noise</a>, <a href=
|
2482
2705
|
"#unsharp_mask_channel">unsharp_mask_channel</a></p>
|
2483
2706
|
|
@@ -2552,8 +2775,10 @@ img.to_color(pixel)
|
|
2552
2775
|
|
2553
2776
|
<p>A new image</p>
|
2554
2777
|
|
2555
|
-
<h4>See also</h4
|
2556
|
-
|
2778
|
+
<h4>See also</h4>
|
2779
|
+
|
2780
|
+
<p><a href="image1.html#enhance">enhance</a>, <a href=
|
2781
|
+
"image2.html#median_filter">median_filter</a>, <a href=
|
2557
2782
|
"image3.html#reduce_noise">reduce_noise</a>, <a href=
|
2558
2783
|
"#unsharp_mask">unsharp_mask</a></p>
|
2559
2784
|
|
@@ -2698,13 +2923,13 @@ end
|
|
2698
2923
|
"padding-top:25px; padding-bottom:25px; display:none" id=
|
2699
2924
|
"nowave" title="Click to see the example script" onmouseout=
|
2700
2925
|
"this.style.display='none'; waved.style.display='';" src=
|
2701
|
-
"ex/images/Flower_Hat.jpg" alt="wave example"
|
2926
|
+
"ex/images/Flower_Hat.jpg" alt="wave example" name="nowave" />
|
2702
2927
|
<!--
|
2703
2928
|
This img tag displays the framed image when the mouse is not over
|
2704
2929
|
--><img class="hide"
|
2705
2930
|
id="waved" onmouseover=
|
2706
2931
|
"this.style.display='none'; nowave.style.display='';" src=
|
2707
|
-
"ex/wave.jpg" alt="wave example"
|
2932
|
+
"ex/wave.jpg" alt="wave example" name="waved" /></a> <img src=
|
2708
2933
|
"ex/images/spin.gif" alt="" class="spin" title=
|
2709
2934
|
"Mouse over the example to see the original image" /></p>
|
2710
2935
|
|