rmagick 1.13.0 → 1.14.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.

Files changed (48) hide show
  1. data/ChangeLog +34 -0
  2. data/README.html +12 -29
  3. data/README.txt +10 -26
  4. data/configure +768 -73
  5. data/configure.ac +29 -26
  6. data/doc/comtasks.html +3 -4
  7. data/doc/constants.html +85 -67
  8. data/doc/draw.html +22 -0
  9. data/doc/ex/dissolve.rb +13 -0
  10. data/doc/ex/edge.rb +1 -1
  11. data/doc/ex/mask.rb +37 -0
  12. data/doc/ex/sketch.rb +25 -0
  13. data/doc/ex/watermark.rb +23 -0
  14. data/doc/ilist.html +11 -13
  15. data/doc/image1.html +601 -52
  16. data/doc/image2.html +637 -28
  17. data/doc/image3.html +339 -54
  18. data/doc/imageattrs.html +211 -41
  19. data/doc/imusage.html +41 -2
  20. data/doc/index.html +8 -6
  21. data/doc/info.html +57 -42
  22. data/doc/optequiv.html +1919 -0
  23. data/doc/rvg.html +45 -42
  24. data/doc/scripts/doc.js +14 -1
  25. data/doc/scripts/stripeTables.js +23 -0
  26. data/doc/usage.html +66 -15
  27. data/{doc/ex → examples}/demo.rb +0 -0
  28. data/examples/find_similar_region.rb +34 -0
  29. data/examples/import_export.rb +1 -1
  30. data/examples/pattern_fill.rb +2 -2
  31. data/examples/rotating_text.rb +2 -4
  32. data/examples/thumbnail.rb +1 -1
  33. data/ext/RMagick/MANIFEST +9 -4
  34. data/ext/RMagick/extconf.rb.in +1 -1
  35. data/ext/RMagick/rmagick.h +47 -10
  36. data/ext/RMagick/rmagick_config.h.in +24 -0
  37. data/ext/RMagick/rmdraw.c +32 -7
  38. data/ext/RMagick/rmilist.c +55 -37
  39. data/ext/RMagick/rmimage.c +1588 -447
  40. data/ext/RMagick/rminfo.c +94 -3
  41. data/ext/RMagick/rmmain.c +68 -7
  42. data/ext/RMagick/rmutil.c +67 -9
  43. data/lib/RMagick.rb +190 -53
  44. data/lib/rvg/stretchable.rb +17 -13
  45. data/rmagick.gemspec +1 -1
  46. metadata +11 -6
  47. data/doc/ex/level_channel.rb +0 -33
  48. data/doc/ex/opaque.rb +0 -14
@@ -15,6 +15,13 @@
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>
18
+ <script type="text/javascript" src="scripts/stripeTables.js">
19
+ </script>
20
+ <script type="text/javascript">
21
+ //<![CDATA[
22
+ addLoadEvent(stripeTables);
23
+ //]]>
24
+ </script>
18
25
  <script type="text/javascript">
19
26
  //<![CDATA[
20
27
  <!-- Pre-load this image so that the browser knows how big it is. -->
@@ -24,6 +31,19 @@
24
31
  // End -->
25
32
  //]]>
26
33
  </script>
34
+ <style type="text/css">
35
+ /*<![CDATA[*/
36
+ #iptc {
37
+ border: thin solid black;
38
+ }
39
+ #iptc th {
40
+ background-color: #c0c0c0;
41
+ }
42
+ td.ds {
43
+ text-align: right;
44
+ }
45
+ /*]]>*/
46
+ </style>
27
47
  </head>
28
48
 
29
49
  <body>
@@ -58,6 +78,9 @@
58
78
  <li><a href=
59
79
  "#export_pixels_to_str">export_pixels_to_str</a></li>
60
80
 
81
+ <li><a href=
82
+ "#find_similar_region">find_similar_region</a></li>
83
+
61
84
  <li><a href="#flip">flip</a></li>
62
85
 
63
86
  <li><a href="#flip_bang">flip!</a></li>
@@ -68,6 +91,8 @@
68
91
 
69
92
  <li><a href="#frame">frame</a></li>
70
93
 
94
+ <li><a href="#freeze">freeze</a></li>
95
+
71
96
  <li><a href="#gamma_channel">gamma_channel</a></li>
72
97
 
73
98
  <li><a href="#gamma_correct">gamma_correct</a></li>
@@ -87,6 +112,8 @@
87
112
 
88
113
  <div class="toccol">
89
114
  <ul>
115
+ <li><a href="#get_iptc_dataset">get_iptc_dataset</a></li>
116
+
90
117
  <li><a href="#get_pixels">get_pixels</a></li>
91
118
 
92
119
  <li><a href="#gray_q">gray?</a></li>
@@ -404,6 +431,52 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
404
431
  <p>ExportImagePixels</p>
405
432
  </div>
406
433
 
434
+ <div class="sig">
435
+ <h3 id="find_similar_region">find_similar_region</h3>
436
+
437
+ <p><span class=
438
+ "arg">image</span>.find_similar_region(<span class=
439
+ "arg">target</span>, <span class="arg">x</span>=0, <span class=
440
+ "arg">y</span>=0) -&gt; <em>[rx, ry]</em></p>
441
+ </div>
442
+
443
+ <div class="desc">
444
+ <h4>Description</h4>
445
+
446
+ <p>This interesting method searches for a rectangle in the
447
+ image that is <em>similar</em> to the target. For the rectangle
448
+ to be <em>similar</em> each pixel in the rectangle must match
449
+ the corresponding pixel in the target image within the range
450
+ specified by the <code>fuzz</code> attributes of the image and
451
+ the target image.</p>
452
+
453
+ <h4>Arguments</h4>
454
+
455
+ <dl>
456
+ <dt>target</dt>
457
+
458
+ <dd>An image that forms the target of the search. This image
459
+ can be any size.</dd>
460
+
461
+ <dt>x, y</dt>
462
+
463
+ <dd>The starting <em>x-</em> and <em>y-</em>offsets for the
464
+ search. If omitted both <span class="arg">x</span> and
465
+ <span class="arg">y</span> default to 0.</dd>
466
+ </dl>
467
+
468
+ <h4>Returns</h4>
469
+
470
+ <p>If the search succeeds, the return value is an array with 2
471
+ elements. These elements are the <em>x-</em> and
472
+ <em>y-</em>offsets of the matching rectangle. If the search
473
+ fails the return value is <code>nil</code>.</p>
474
+
475
+ <h4>Magick API</h4>
476
+
477
+ <p>IsImageSimilar (available in ImageMagick 6.2.8)</p>
478
+ </div>
479
+
407
480
  <div class="sig">
408
481
  <h3 id="flip">flip</h3>
409
482
 
@@ -592,6 +665,23 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
592
665
  <p>FrameImage</p>
593
666
  </div>
594
667
 
668
+ <div class="sig">
669
+ <h3 id="freeze">freeze</h3>
670
+
671
+ <p><span class="arg">image</span>.freeze -&gt;
672
+ <em>self</em></p>
673
+ </div>
674
+
675
+ <div class="desc">
676
+ <h4>Description</h4>
677
+
678
+ <p>Prevent further modifications to the image.</p>
679
+
680
+ <h4>Returns</h4>
681
+
682
+ <p>self</p>
683
+ </div>
684
+
595
685
  <div class="sig">
596
686
  <h3 id="gamma_channel">gamma_channel</h3>
597
687
 
@@ -644,8 +734,8 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
644
734
 
645
735
  <p><span class="arg">image</span>.gamma_correct(<span class=
646
736
  "arg">red_gamma</span>[,<span class="arg">green_gamma</span>[,
647
- <span class="arg">blue_gamma</span>[, <span class=
648
- "arg">opacity_gamma</span>]]]) -&gt; <em>anImage</em></p>
737
+ <span class="arg">blue_gamma</span>]]) -&gt;
738
+ <em>anImage</em></p>
649
739
  </div>
650
740
 
651
741
  <div class="desc">
@@ -868,6 +958,545 @@ image.get_exif_by_number() &raquo;
868
958
  <p><a href="#get_exif_by_entry">get_exif_by_entry</a></p>
869
959
  </div>
870
960
 
961
+ <div class="sig">
962
+ <h3 id="get_iptc_dataset">get_iptc_dataset</h3>
963
+
964
+ <p><span class="arg">image</span>.get_iptc_dataset(<span class=
965
+ "arg">ds</span>) -&gt; <em>aString</em></p>
966
+ </div>
967
+
968
+ <div class="desc">
969
+ <h4>Description</h4>
970
+
971
+ <p>Retrieves the data field for the specified DataSet, or
972
+ <code>nil</code> if the DataSet is not used or the data field
973
+ has length 0.</p>
974
+
975
+ <h4>Arguments</h4>
976
+
977
+ <p>RMagick defines the following constants for use as arguments
978
+ to this method. All the constants are in the Magick::IPTC
979
+ namespace. Notice that some DataSets have two names.</p>
980
+
981
+ <table id="iptc" class="striped" summary=
982
+ "IPTC dataset constants">
983
+ <tr>
984
+ <th>Constant</th>
985
+
986
+ <th>Record:DataSet</th>
987
+ </tr>
988
+
989
+ <tr>
990
+ <td>
991
+ Envelope::Model_Version</td>
992
+
993
+ <td class="ds">1:00</td>
994
+ </tr>
995
+ <tr>
996
+ <td>
997
+ Envelope::Destination</td>
998
+
999
+ <td class="ds">1:05</td>
1000
+ </tr>
1001
+ <tr>
1002
+ <td>
1003
+ Envelope::UNO</td>
1004
+
1005
+ <td class="ds">1:100</td>
1006
+ </tr>
1007
+ <tr>
1008
+ <td>
1009
+ Envelope::Unique_Name_of_Object</td>
1010
+
1011
+ <td class="ds">1:100</td>
1012
+ </tr>
1013
+ <tr>
1014
+ <td>
1015
+ Envelope::ARM_Identifier</td>
1016
+
1017
+ <td class="ds">1:120</td>
1018
+ </tr>
1019
+ <tr>
1020
+ <td>
1021
+ Envelope::ARM_Version</td>
1022
+
1023
+ <td class="ds">1:122</td>
1024
+ </tr>
1025
+ <tr>
1026
+ <td>
1027
+ Envelope::File_Format</td>
1028
+
1029
+ <td class="ds">1:20</td>
1030
+ </tr>
1031
+ <tr>
1032
+ <td>
1033
+ Envelope::File_Format_Version</td>
1034
+
1035
+ <td class="ds">1:22</td>
1036
+ </tr>
1037
+ <tr>
1038
+ <td>
1039
+ Envelope::Service_Identifier</td>
1040
+
1041
+ <td class="ds">1:30</td>
1042
+ </tr>
1043
+ <tr>
1044
+ <td>
1045
+ Envelope::Envelope_Number</td>
1046
+
1047
+ <td class="ds">1:40</td>
1048
+ </tr>
1049
+ <tr>
1050
+ <td>
1051
+ Envelope::Product_ID</td>
1052
+
1053
+ <td class="ds">1:50</td>
1054
+ </tr>
1055
+ <tr>
1056
+ <td>
1057
+ Envelope::Envelope_Priority</td>
1058
+
1059
+ <td class="ds">1:60</td>
1060
+ </tr>
1061
+ <tr>
1062
+ <td>
1063
+ Envelope::Date_Sent</td>
1064
+
1065
+ <td class="ds">1:70</td>
1066
+ </tr>
1067
+ <tr>
1068
+ <td>
1069
+ Envelope::Time_Sent</td>
1070
+
1071
+ <td class="ds">1:80</td>
1072
+ </tr>
1073
+ <tr>
1074
+ <td>
1075
+ Envelope::Coded_Character_Set</td>
1076
+
1077
+ <td class="ds">1:90</td>
1078
+ </tr>
1079
+ <tr>
1080
+ <td>
1081
+ Application::Object_Type_Reference</td>
1082
+
1083
+ <td class="ds">2:03</td>
1084
+ </tr>
1085
+ <tr>
1086
+ <td>
1087
+ Application::Object_Name</td>
1088
+
1089
+ <td class="ds">2:05</td>
1090
+ </tr>
1091
+ <tr>
1092
+ <td>
1093
+ Application::Title</td>
1094
+
1095
+ <td class="ds">2:05</td>
1096
+ </tr>
1097
+ <tr>
1098
+ <td>
1099
+ Application::Edit_Status</td>
1100
+
1101
+ <td class="ds">2:07</td>
1102
+ </tr>
1103
+ <tr>
1104
+ <td>
1105
+ Application::Editorial_Update</td>
1106
+
1107
+ <td class="ds">2:08</td>
1108
+ </tr>
1109
+ <tr>
1110
+ <td>
1111
+ Application::Urgency</td>
1112
+
1113
+ <td class="ds">2:10</td>
1114
+ </tr>
1115
+ <tr>
1116
+ <td>
1117
+ Application::Country_Primary_Location_Code</td>
1118
+
1119
+ <td class="ds">2:100</td>
1120
+ </tr>
1121
+ <tr>
1122
+ <td>
1123
+ Application::Country_Primary_Location_Name</td>
1124
+
1125
+ <td class="ds">2:101</td>
1126
+ </tr>
1127
+ <tr>
1128
+ <td>
1129
+ Application::Original_Transmission_Reference</td>
1130
+
1131
+ <td class="ds">2:103</td>
1132
+ </tr>
1133
+ <tr>
1134
+ <td>
1135
+ Application::Headline</td>
1136
+
1137
+ <td class="ds">2:105</td>
1138
+ </tr>
1139
+ <tr>
1140
+ <td>
1141
+ Application::Credit</td>
1142
+
1143
+ <td class="ds">2:110</td>
1144
+ </tr>
1145
+ <tr>
1146
+ <td>
1147
+ Application::Source</td>
1148
+
1149
+ <td class="ds">2:115</td>
1150
+ </tr>
1151
+ <tr>
1152
+ <td>
1153
+ Application::Copyright_Notice</td>
1154
+
1155
+ <td class="ds">2:116</td>
1156
+ </tr>
1157
+ <tr>
1158
+ <td>
1159
+ Application::Contact</td>
1160
+
1161
+ <td class="ds">2:118</td>
1162
+ </tr>
1163
+ <tr>
1164
+ <td>
1165
+ Application::Subject_Reference</td>
1166
+
1167
+ <td class="ds">2:12</td>
1168
+ </tr>
1169
+ <tr>
1170
+ <td>
1171
+ Application::Abstract</td>
1172
+
1173
+ <td class="ds">2:120</td>
1174
+ </tr>
1175
+ <tr>
1176
+ <td>
1177
+ Application::Caption</td>
1178
+
1179
+ <td class="ds">2:120</td>
1180
+ </tr>
1181
+ <tr>
1182
+ <td>
1183
+ Application::Caption_Writer</td>
1184
+
1185
+ <td class="ds">2:122</td>
1186
+ </tr>
1187
+ <tr>
1188
+ <td>
1189
+ Application::Editor</td>
1190
+
1191
+ <td class="ds">2:122</td>
1192
+ </tr>
1193
+ <tr>
1194
+ <td>
1195
+ Application::Rasterized_Caption</td>
1196
+
1197
+ <td class="ds">2:125</td>
1198
+ </tr>
1199
+ <tr>
1200
+ <td>
1201
+ Application::Image_Type</td>
1202
+
1203
+ <td class="ds">2:130</td>
1204
+ </tr>
1205
+ <tr>
1206
+ <td>
1207
+ Application::Image_Orientation</td>
1208
+
1209
+ <td class="ds">2:131</td>
1210
+ </tr>
1211
+ <tr>
1212
+ <td>
1213
+ Application::Language_Identifier</td>
1214
+
1215
+ <td class="ds">2:135</td>
1216
+ </tr>
1217
+ <tr>
1218
+ <td>
1219
+ Application::Category</td>
1220
+
1221
+ <td class="ds">2:15</td>
1222
+ </tr>
1223
+ <tr>
1224
+ <td>
1225
+ Application::Audio_Type</td>
1226
+
1227
+ <td class="ds">2:150</td>
1228
+ </tr>
1229
+ <tr>
1230
+ <td>
1231
+ Application::Audio_Sampling_Rate</td>
1232
+
1233
+ <td class="ds">2:151</td>
1234
+ </tr>
1235
+ <tr>
1236
+ <td>
1237
+ Application::Audio_Sampling_Resolution</td>
1238
+
1239
+ <td class="ds">2:152</td>
1240
+ </tr>
1241
+ <tr>
1242
+ <td>
1243
+ Application::Audio_Duration</td>
1244
+
1245
+ <td class="ds">2:153</td>
1246
+ </tr>
1247
+ <tr>
1248
+ <td>
1249
+ Application::Audio_Outcue</td>
1250
+
1251
+ <td class="ds">2:154</td>
1252
+ </tr>
1253
+ <tr>
1254
+ <td>
1255
+ Application::Supplemental_Category</td>
1256
+
1257
+ <td class="ds">2:20</td>
1258
+ </tr>
1259
+ <tr>
1260
+ <td>
1261
+ Application::ObjectData_Preview_File_Format</td>
1262
+
1263
+ <td class="ds">2:200</td>
1264
+ </tr>
1265
+ <tr>
1266
+ <td>
1267
+ Application::ObjectData_Preview_File_Format_Version</td>
1268
+
1269
+ <td class="ds">2:201</td>
1270
+ </tr>
1271
+ <tr>
1272
+ <td>
1273
+ Application::ObjectData_Preview_Data</td>
1274
+
1275
+ <td class="ds">2:202</td>
1276
+ </tr>
1277
+ <tr>
1278
+ <td>
1279
+ Application::Fixture_Identifier</td>
1280
+
1281
+ <td class="ds">2:22</td>
1282
+ </tr>
1283
+ <tr>
1284
+ <td>
1285
+ Application::Keywords</td>
1286
+
1287
+ <td class="ds">2:25</td>
1288
+ </tr>
1289
+ <tr>
1290
+ <td>
1291
+ Application::Content_Location_Code</td>
1292
+
1293
+ <td class="ds">2:26</td>
1294
+ </tr>
1295
+ <tr>
1296
+ <td>
1297
+ Application::Content_Location_Name</td>
1298
+
1299
+ <td class="ds">2:27</td>
1300
+ </tr>
1301
+ <tr>
1302
+ <td>
1303
+ Application::Release_Date</td>
1304
+
1305
+ <td class="ds">2:30</td>
1306
+ </tr>
1307
+ <tr>
1308
+ <td>
1309
+ Application::Release_Time</td>
1310
+
1311
+ <td class="ds">2:35</td>
1312
+ </tr>
1313
+ <tr>
1314
+ <td>
1315
+ Application::Expiration_Time</td>
1316
+
1317
+ <td class="ds">2:35</td>
1318
+ </tr>
1319
+ <tr>
1320
+ <td>
1321
+ Application::Expiration_Date</td>
1322
+
1323
+ <td class="ds">2:37</td>
1324
+ </tr>
1325
+ <tr>
1326
+ <td>
1327
+ Application::Special_Instructions</td>
1328
+
1329
+ <td class="ds">2:40</td>
1330
+ </tr>
1331
+ <tr>
1332
+ <td>
1333
+ Application::Action_Advised</td>
1334
+
1335
+ <td class="ds">2:42</td>
1336
+ </tr>
1337
+ <tr>
1338
+ <td>
1339
+ Application::Reference_Service</td>
1340
+
1341
+ <td class="ds">2:45</td>
1342
+ </tr>
1343
+ <tr>
1344
+ <td>
1345
+ Application::Reference_Date</td>
1346
+
1347
+ <td class="ds">2:47</td>
1348
+ </tr>
1349
+ <tr>
1350
+ <td>
1351
+ Application::Reference_Number</td>
1352
+
1353
+ <td class="ds">2:50</td>
1354
+ </tr>
1355
+ <tr>
1356
+ <td>
1357
+ Application::Date_Created</td>
1358
+
1359
+ <td class="ds">2:55</td>
1360
+ </tr>
1361
+ <tr>
1362
+ <td>
1363
+ Application::Time_Created</td>
1364
+
1365
+ <td class="ds">2:60</td>
1366
+ </tr>
1367
+ <tr>
1368
+ <td>
1369
+ Application::Digital_Creation_Date</td>
1370
+
1371
+ <td class="ds">2:62</td>
1372
+ </tr>
1373
+ <tr>
1374
+ <td>
1375
+ Application::Digital_Creation_Time</td>
1376
+
1377
+ <td class="ds">2:63</td>
1378
+ </tr>
1379
+ <tr>
1380
+ <td>
1381
+ Application::Originating_Program</td>
1382
+
1383
+ <td class="ds">2:65</td>
1384
+ </tr>
1385
+ <tr>
1386
+ <td>
1387
+ Application::Program_Version</td>
1388
+
1389
+ <td class="ds">2:70</td>
1390
+ </tr>
1391
+ <tr>
1392
+ <td>
1393
+ Application::Object_Cycle</td>
1394
+
1395
+ <td class="ds">2:75</td>
1396
+ </tr>
1397
+ <tr>
1398
+ <td>
1399
+ Application::Author</td>
1400
+
1401
+ <td class="ds">2:80</td>
1402
+ </tr>
1403
+ <tr>
1404
+ <td>
1405
+ Application::By_Line</td>
1406
+
1407
+ <td class="ds">2:80</td>
1408
+ </tr>
1409
+ <tr>
1410
+ <td>
1411
+ Application::Author_Position</td>
1412
+
1413
+ <td class="ds">2:85</td>
1414
+ </tr>
1415
+ <tr>
1416
+ <td>
1417
+ Application::By_Line_Title</td>
1418
+
1419
+ <td class="ds">2:85</td>
1420
+ </tr>
1421
+ <tr>
1422
+ <td>
1423
+ Application::City</td>
1424
+
1425
+ <td class="ds">2:90</td>
1426
+ </tr>
1427
+ <tr>
1428
+ <td>
1429
+ Application::Sub_Location</td>
1430
+
1431
+ <td class="ds">2:92</td>
1432
+ </tr>
1433
+ <tr>
1434
+ <td>
1435
+ Application::Province</td>
1436
+
1437
+ <td class="ds">2:95</td>
1438
+ </tr>
1439
+ <tr>
1440
+ <td>
1441
+ Application::State</td>
1442
+
1443
+ <td class="ds">2:95</td>
1444
+ </tr>
1445
+ <tr>
1446
+ <td>
1447
+ Pre_ObjectData_Descriptor::Size_Mode</td>
1448
+
1449
+ <td class="ds">7:10</td>
1450
+ </tr>
1451
+ <tr>
1452
+ <td>
1453
+ Pre_ObjectData_Descriptor::Max_Subfile_Size</td>
1454
+
1455
+ <td class="ds">7:20</td>
1456
+ </tr>
1457
+ <tr>
1458
+ <td>
1459
+ Pre_ObjectData_Descriptor::ObjectData_Size_Announced</td>
1460
+
1461
+ <td class="ds">7:90</td>
1462
+ </tr>
1463
+ <tr>
1464
+ <td>
1465
+ Pre_ObjectData_Descriptor::Maximum_ObjectData_Size</td>
1466
+
1467
+ <td class="ds">7:95</td>
1468
+ </tr>
1469
+ <tr>
1470
+ <td>
1471
+ ObjectData::Subfile</td>
1472
+
1473
+ <td class="ds">8:10</td>
1474
+ </tr>
1475
+ <tr>
1476
+ <td>
1477
+ Post_ObjectData_Descriptor::Confirmed_ObjectData_Size</td>
1478
+
1479
+ <td class="ds">9:10</td>
1480
+ </tr>
1481
+
1482
+ </table>
1483
+
1484
+ <h4>Example</h4>
1485
+ <pre>
1486
+ img.get_iptc_dataset(Magick::IPTC::Application::Keywords)
1487
+ </pre>
1488
+
1489
+ <h4>Returns</h4>
1490
+
1491
+ <p>The data field or nil</p>
1492
+
1493
+ <h4>See also</h4>
1494
+
1495
+ <p><a href=
1496
+ "image1.html#each_iptc_dataset">each_iptc_dataset</a>, <a href=
1497
+ "imageattrs.html#iptc_profile">iptc_profile</a></p>
1498
+ </div>
1499
+
871
1500
  <div class="sig">
872
1501
  <h3 id="get_pixels">get_pixels</h3>
873
1502
 
@@ -1373,17 +2002,6 @@ img.level(white_point, gamma, black_point) -&gt; anImage # wrong!
1373
2002
 
1374
2003
  <p>A new image</p>
1375
2004
 
1376
- <h4>Example</h4>
1377
-
1378
- <p class="rollover"><a href=
1379
- "javascript:popup('level_channel.rb.html')"><img onmouseover=
1380
- "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
1381
- "this.src='ex/level_channel.jpg'" src="ex/level_channel.jpg"
1382
- title="Click to see the example script" alt=
1383
- "level_channel example" /></a> <img src="ex/images/spin.gif"
1384
- alt="" class="spin" title=
1385
- "Mouse over the example to see the original image" /></p>
1386
-
1387
2005
  <h4>See also</h4>
1388
2006
 
1389
2007
  <p><a href="#level">level</a></p>
@@ -1853,8 +2471,8 @@ img.level(white_point, gamma, black_point) -&gt; anImage # wrong!
1853
2471
  <h3 id="motion_blur">motion_blur</h3>
1854
2472
 
1855
2473
  <p><span class="arg">image</span>.motion_blur(<span class=
1856
- "arg">radius</span>, <span class="arg">sigma</span>,
1857
- <span class="arg">angle</span>) -&gt; <em>anImage</em></p>
2474
+ "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0,
2475
+ <span class="arg">angle</span>=0.0) -&gt; <em>anImage</em></p>
1858
2476
  </div>
1859
2477
 
1860
2478
  <div class="desc">
@@ -2150,19 +2768,10 @@ img.level(white_point, gamma, black_point) -&gt; anImage # wrong!
2150
2768
  <p>A new image</p>
2151
2769
 
2152
2770
  <h4>Example</h4>
2153
-
2154
- <p>This example replaces white pixels with red pixels. Set the
2155
- fuzz attribute to specify how closely the target pixels must
2156
- match.</p>
2157
-
2158
- <p class="rollover"><a href=
2159
- "javascript:popup('opaque.rb.html')"><img src="ex/opaque.jpg"
2160
- alt="opaque example" onmouseover=
2161
- "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
2162
- "this.src='ex/opaque.jpg'" title=
2163
- "Click to see the example script" /></a> <img src=
2164
- "ex/images/spin.gif" alt="" class="spin" title=
2165
- "Mouse over the example to see the original image" /></p>
2771
+ <pre>
2772
+ img.fuzz = 25
2773
+ img = img.opaque('white', 'red')
2774
+ </pre>
2166
2775
 
2167
2776
  <h4>See also</h4>
2168
2777