File: image2.html

package info (click to toggle)
librmagick-ruby 2.13.1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,444 kB
  • ctags: 1,716
  • sloc: ansic: 16,755; ruby: 9,730; makefile: 16; sh: 12
file content (3665 lines) | stat: -rw-r--r-- 94,001 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

  <title>RMagick 2.13.1: class Image (instance methods e-o)</title>
  <meta http-equiv="Content-Type" content=
  "text/html; charset=us-ascii" />
  <meta name="GENERATOR" content="Quanta Plus" />
  <meta name="Copyright" content=
  "Copyright (C) 2006 by Timothy P. Hunter" />
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
  <script type="text/javascript" src="scripts/doc.js">
</script>
  <script type="text/javascript" src="scripts/stripeTables.js">
</script>
  <script type="text/javascript">
//<![CDATA[
    addLoadEvent(stripeTables);
  //]]>
  </script>
  <script type="text/javascript">
//<![CDATA[
    <!-- Pre-load this image so that the browser knows how big it is. -->
    <!-- Begin
    flower_hat = new Image();
    flower_hat.src = "ex/images/Flower_Hat.jpg";
    // End -->
  //]]>
  </script>
  <style type="text/css">
/*<![CDATA[*/
  #iptc  {
    border: thin solid black;
  }
  #iptc th {
    background-color: #c0c0c0;
  }
  td.ds {
    text-align: right;
  }
  /*]]>*/
  </style>
</head>

<body>
  <h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>

  <div class="nav">
    &laquo;&nbsp;<a href="image1.html">Prev</a> | <a href=
    "index.html">Contents</a> | <a href=
    "image3.html">Next</a>&nbsp;&raquo;
  </div>

  <h1>class Image <span class="superclass">&lt; Object</span>
  (instance methods e-o)<br />
  <span class="mixin">mixes in Comparable</span></h1>

  <div id="toc">
    <h2>Table of Contents</h2>

    <h3>instance methods</h3>

    <div>
      <div class="toccol">
        <ul>
          <li><a href=
          "#each_iptc_dataset">each_iptc_dataset</a></li>

          <li><a href="#each_pixel">each_pixel</a></li>

          <li><a href="#each_profile">each_profile</a></li>

          <li><a href="#edge">edge</a></li>

          <li><a href="#emboss">emboss</a></li>

          <li><a href="#encipher">encipher</a></li>

          <li><a href="#enhance">enhance</a></li>

          <li><a href="#equalize">equalize</a></li>

          <li><a href="#equalize_channel">equalize_channel</a></li>

          <li><a href="#erase_bang">erase!</a></li>

          <li><a href="#excerpt">excerpt</a></li>

          <li><a href="#excerpt_bang">excerpt!</a></li>

          <li><a href="#export_pixels">export_pixels</a></li>

          <li><a href=
          "#export_pixels_to_str">export_pixels_to_str</a></li>

          <li><a href="#extent">extent</a></li>

          <li><a href=
          "#find_similar_region">find_similar_region</a></li>

          <li><a href="#flip">flip</a></li>

          <li><a href="#flip_bang">flip!</a></li>

          <li><a href="#flop">flop</a></li>

          <li><a href="#flop_bang">flop!</a></li>

          <li><a href="#frame">frame</a></li>

          <li><a href="#freeze">freeze</a></li>

          <li><a href="#function_channel">function_channel</a></li>
        </ul>
      </div>

      <div class="toccol">
        <ul>
          <li><a href="#gamma_channel">gamma_channel</a></li>

          <li><a href="#gamma_correct">gamma_correct</a></li>

          <li><a href="#gaussian_blur">gaussian_blur</a></li>

          <li><a href=
          "#gaussian_blur_channel">gaussian_blur_channel</a></li>

          <li><a href=
          "#get_exif_by_entry">get_exif_by_entry</a></li>

          <li><a href=
          "#get_exif_by_number">get_exif_by_number</a></li>

          <li><a href="#get_iptc_dataset">get_iptc_dataset</a></li>

          <li><a href="#get_pixels">get_pixels</a></li>

          <li><a href="#gray_q">gray?</a></li>

          <li><a href="#grey_q">grey?</a></li>

          <li><a href="#histogram_q">histogram?</a></li>

          <li><a href="#implode">implode</a></li>

          <li><a href="#import_pixels">import_pixels</a></li>

          <li><a href="#inspect">inspect</a></li>

          <li><a href="#level">level</a></li>

          <li><a href="#level_channel">level_channel</a></li>

          <li><a href="#level_colors">level_colors</a></li>

          <li><a href="#levelize_channel">levelize_channel</a></li>

          <li><a href="#linear_stretch">linear_stretch</a></li>

          <li><a href="#liquid_rescale">liquid_rescale</a></li>

          <li><a href="#magnify">magnify</a></li>

          <li><a href="#magnify_bang">magnify!</a></li>
        </ul>
      </div>

      <div class="toccol">
        <ul>
          <li><a href="#mask">mask</a></li>

          <li><a href="#map">map</a></li>

          <li><a href=
          "#matte_fill_to_border">matte_fill_to_border</a></li>

          <li><a href="#matte_floodfill">matte_floodfill</a></li>

          <li><a href="#matte_point">matte_point</a></li>

          <li><a href="#matte_replace">matte_replace</a></li>

          <li><a href="#matte_reset_bang">matte_reset!</a></li>

          <li><a href="#median_filter">median_filter</a></li>

          <li><a href="#minify">minify</a></li>

          <li><a href="#minify_bang">minify!</a></li>

          <li><a href="#modulate">modulate</a></li>

          <li><a href="#monochrome_q">monochrome?</a></li>

          <li><a href="#motion_blur">motion_blur</a></li>

          <li><a href="#negate">negate</a></li>

          <li><a href="#negate_channel">negate_channel</a></li>

          <li><a href="#normalize">normalize</a></li>

          <li><a href=
          "#normalize_channel">normalize_channel</a></li>

          <li><a href="#oil_paint">oil_paint</a></li>

          <li><a href="#opaque">opaque</a></li>

          <li><a href="#opaque_channel">opaque_channel</a></li>

          <li><a href="#opaque_q">opaque?</a></li>

          <li><a href="#ordered_dither">ordered_dither</a></li>
        </ul>
      </div>
    </div>
  </div>

  <h2 class="methods">instance methods</h2>

  <div class="sig">
    <h3 id="each_iptc_dataset">each_iptc_dataset</h3>

    <p><span class="arg">img</span>.each_iptc_dataset {
    |<span class="arg">dataset</span>, <span class=
    "arg">data_field</span>| <span class="arg">block</span>} -&gt;
    <code>nil</code></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Iterates over the IPTC DataSet constants in Magick::IPTC. If
    the image's IPTC profile has the DataSet and the data field has
    non-0 length, yields to the block. The IPTC DataSet constants
    are listed <a href="image2.html#get_iptc_dataset">here</a>.</p>

    <h4>Arguments</h4>

    <p>The block arguments are:</p>

    <dl>
      <dt>dataset</dt>

      <dd>The DataSet name</dd>

      <dt>data_field</dt>

      <dd>The data field</dd>
    </dl>

    <h4>See also</h4>

    <p><a href=
    "image2.html#get_iptc_dataset">get_iptc_dataset</a></p>
  </div>

  <div class="sig">
    <h3 id="each_pixel">each_pixel</h3>

    <p><span class="arg">img</span>.each_pixel {|<span class=
    "arg">pixel</span>, <span class="arg">c</span>, <span class=
    "arg">r</span>| <span class="arg">block</span> } -&gt;
    <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Calls <span class="arg">block</span> with 3 arguments, a
    <span class="arg">pixel</span> from <span class=
    "arg">img</span>, its column number <span class="arg">c</span>,
    and its row number <span class="arg">r</span>, for all the
    pixels in the image. The pixels are enumerated from
    top-to-bottom and left-to-right.</p>

    <h4>Returns</h4>

    <p>self</p>

    <h4>See also</h4>

    <p><a href="image2.html#get_pixels">get_pixels</a></p>
  </div>

  <div class="sig">
    <h3 id="each_profile">each_profile</h3>

    <p><span class="arg">img</span>.each_profile {|<span class=
    "arg">name</span>, <span class="arg">value</span>| <span class=
    "arg">block</span>} -&gt; <em>???</em> (see Returns)</p>
  </div>

  <div class="desc">
    <h4>Description</h4>Calls <span class="arg">block</span> once
    for each profile in the image, passing the profile name and
    value as parameters.

    <h4>Returns</h4>

    <p>the last value returned by the block</p>

    <h4>See also</h4>

    <p>The <a href=
    "imageattrs.html#color_profile">color_profile</a> and <a href=
    "imageattrs.html#iptc_profile">iptc_profile</a> attributes
    return the ICC and IPTC profiles, respectively.</p>

    <h4>Magick API</h4>

    <p>GetNextImageProfile</p>
  </div>

  <div class="sig">
    <h3 id="edge">edge</h3>

    <p><span class="arg">img</span>.edge(<span class=
    "arg">radius</span>=0.0) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>Finds edges in the image.

    <h4>Arguments</h4>The radius of the convolution filter. If the
    radius is 0, <code>edge</code> selects a suitable default.

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('edge.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/edge.jpg'" src="ex/edge.jpg" alt="edge example"
    title="Click the image to see the example script" /></a>
    <img src="ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>EdgeImage</p>
  </div>

  <div class="sig">
    <h3 id="emboss">emboss</h3>

    <p><span class="arg">img</span>.emboss(<span class=
    "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
    -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>Adds a 3-dimensional effect.

    <h4>Arguments</h4>

    <dl>
      <dt>radius</dt>

      <dd>The radius of the Gaussian operator.</dd>

      <dt>sigma</dt>

      <dd>The sigma (standard deviation) of the Gaussian operator.
      This value cannot be 0.0.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('emboss.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/emboss.jpg'" src="ex/emboss.jpg" alt=
    "emboss example" title=
    "Click the image to see the example script" /></a><img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>EmbossImage</p>
  </div>

  <div class="sig">
    <h3 id="encipher">encipher</h3>

    <p><span class="arg">img</span>.encipher(<span class=
    "arg">passphrase</span>) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Encipher an image.</p>

    <h4>Arguments</h4>

    <p>The passphrase.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>
    <pre>
enciphered_img = img.encipher("magic word")
</pre>

    <h4>Magick API</h4>

    <p>EncipherImage</p>

    <h4>See also</h4>

    <p><a href="image1.html#decipher">decipher</a></p>
  </div>

  <div class="sig">
    <h3 id="enhance">enhance</h3>

    <p><span class="arg">img</span>.enhance -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Applies a digital filter that improves the
    quality of a noisy image.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>The left-hand side has had noise added by <code><a href=
    "#add_noise">add_noise</a></code>. The right-hand side is the
    result after using <code>enhance</code>.</p>

    <p><a href="javascript:popup('enhance.rb.html')"><img src=
    "ex/enhance.jpg" alt="enhance example" title=
    "Click to see the example script" /></a></p>

    <h4>See also</h4>

    <p><a href="image2.html#median_filter">median_filter</a>,
    <a href="image3.html#reduce_noise">reduce_noise</a>, <a href=
    "image3.html#unsharp_mask">unsharp_mask</a></p>

    <h4>Magick API</h4>

    <p>EnhanceImage</p>
  </div>

  <div class="sig">
    <h3 id="equalize">equalize</h3>

    <p><span class="arg">img</span>.equalize -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Applies a histogram equalization to the
    image.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('equalize.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/equalize.jpg'" src="ex/equalize.jpg" alt=
    "equalize example" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>EqualizeImage</p>

    <h4>See also</h4>

    <p><a href="#equalize_channel">equalize_channel</a></p>
  </div>

  <div class="sig">
    <h3 id="equalize_channel">equalize_chanel</h3>

    <p><span class="arg">img</span>.equalize_channel(<span class=
    "arg">[channel...]</span>) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p><span class="imquote">Applies a histogram equalization to
    the image.</span> Only the specified channels are
    equalized.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, all the channels are normalized.
      Specifying no channel arguments has the same effect as the
      equalize method, above.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Magick API</h4>

    <p>EqualizeImageChannel</p>

    <h4>See also</h4>

    <p><a href="#equalize">equalize</a></p>
  </div>

  <div class="sig">
    <h3 id="erase_bang">erase!</h3>

    <p><span class="arg">img</span>.erase! -&gt; <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Sets the entire image to the <a href=
    "imageattrs.html#background_color">background color</a>.</p>

    <h4>Returns</h4>self

    <h4>See also</h4>

    <p><a href="image1.html#color_reset_bang">color_reset!</a></p>

    <h4>Magick API</h4>

    <p>SetImage</p>
  </div>

  <div class="sig">
    <h3 id="excerpt">excerpt</h3>

    <p><span class="arg">img</span>.excerpt(<span class=
    "arg">x</span>, <span class="arg">y</span>, <span class=
    "arg">width</span>, <span class="arg">height</span>) -&gt;
    image</p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>This method is very similar to <a href=
    "image1.html#crop">crop</a>. It extracts the rectangle
    specified by its arguments from the image and returns it as a
    new image. However, excerpt <span class="imquote">does not
    respect the virtual page offset and does not update the page
    offset and is more efficient than cropping.</span></p>

    <p>It is the caller's responsibility to ensure that the
    rectangle lies entirely within the original image.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>x, y</dt>

      <dd>The position of the upper-left corner of the excerpted
      rectangle.</dd>

      <dt>width, height</dt>

      <dd>The width and height of the excerpted rectangle. The
      resulting image will always be <span class=
      "arg">width</span>x<span class="arg">height</span> in
      size.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See Also</h4>

    <p><a href="image1.html#crop">crop</a>, <a href=
    "#excerpt_bang">excerpt!</a></p>

    <h4>Magick API</h4>

    <p>ExcerptImage</p>
  </div>

  <div class="sig">
    <h3 id="excerpt_bang">excerpt!</h3>

    <p><span class="arg">img</span>.excerpt!(<span class=
    "arg">x</span>, <span class="arg">y</span>, <span class=
    "arg">width</span>, <span class="arg">height</span>) -&gt;
    <span class="arg">img</span></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>In-place form of <a href="#excerpt">excerpt</a>.</p>
  </div>

  <div class="sig">
    <h3 id="export_pixels">export_pixels</h3>

    <p><span class="arg">img</span>.export_pixels(<span class=
    "arg">x</span>=0, <span class="arg">y</span>=0, <span class=
    "arg">columns</span>=<span class="arg">img</span>.columns,
    <span class="arg">rows</span>=<span class=
    "arg">img</span>.rows, <span class="arg">map</span>="RGB")
    -&gt; <em>array</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Extracts the pixel data from the specified rectangle and
    returns it as an array of <code>Integer</code> values.</p>

    <p>The array returned by <code>export_pixels</code> is suitable
    for use as an argument to <code>import_pixels</code>.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>x, y</dt>

      <dd>The offset of the rectangle from the upper-left corner of
      the image.</dd>

      <dt>columns, rows</dt>

      <dd>The width and height of the rectangle.</dd>

      <dt>map</dt>

      <dd>A string that describes which pixel channel data is
      desired and the order in which it should be stored.
      <span class="imquote">It can be any combination or order of R
      = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow,
      M = magenta, K = black, I = intensity (for grayscale), or P =
      pad.</span></dd>
    </dl>

    <h4>Returns</h4>An array

    <h4>Example</h4>
    <pre>
# Export the r'th scanline from an image in red-green-blue order
scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
</pre>

    <h4>See also</h4>

    <p><a href="image1.html#dispatch">dispatch</a>, <a href=
    "#export_pixels_to_str">export_pixels_to_str</a>, <a href=
    "#import_pixels">import_pixels</a>, <a href=
    "#get_pixels">get_pixels</a></p>

    <h4>Magick API</h4>

    <p>ExportImagePixels</p>

    <h4>Note</h4>

    <p>This method replaces the <code>dispatch</code> method.</p>
  </div>

  <div class="sig">
    <h3 id="export_pixels_to_str">export_pixels_to_str</h3>

    <p><span class=
    "arg">img</span>.export_pixels_to_str(<span class=
    "arg">x</span>=0, <span class="arg">y</span>=0, <span class=
    "arg">columns</span>=<span class="arg">img</span>.columns,
    <span class="arg">rows</span>=<span class=
    "arg">img</span>.rows, <span class="arg">map</span>="RGB",
    <span class="arg">type</span>=<code>CharPixel</code>) -&gt;
    <em>string</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Extracts the pixel data from the specified rectangle and
    returns it as a string. If you need to get the pixel data in a
    memory buffer (as input to another application, for example),
    this method is much, much faster than <a href=
    "#export_pixels">export_pixels</a> or <a href=
    "#get_pixels">get_pixels</a>.</p>

    <p>The string returned by <code>export_pixels_to_str</code> is
    suitable for use as an argument to
    <code>import_pixels</code>.</p>

    <p><strong>Note:</strong> You can also use <a href=
    "image3.html#to_blob">to_blob</a> to convert an image into a
    string.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>x, y</dt>

      <dd>The offset of the rectangle from the upper-left corner of
      the image.</dd>

      <dt>columns, rows</dt>

      <dd>The width and height of the rectangle.</dd>

      <dt>map</dt>

      <dd>A string that describes which pixel channel data is
      desired and the order in which it should be stored.
      <span class="imquote">It can be any combination or order of R
      = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow,
      M = magenta, K = black, I = intensity (for grayscale), or P =
      pad.</span></dd>

      <dt>type</dt>

      <dd>A <a href="constants.html#StorageType">StorageType</a>
      value that specifies the C datatype to which the pixel data
      will be converted. The default is <code>CharPixel</code>,
      which means that the pixel values will be stored as C
      <code>unsigned char</code>s.</dd>
    </dl>

    <h4>Returns</h4>

    <p>a string</p>

    <h4>See also</h4>

    <p><a href="image1.html#dispatch">dispatch</a>, <a href=
    "#export_pixels">export_pixels</a>, <a href=
    "#import_pixels">import_pixels</a>, <a href=
    "#get_pixels">get_pixels</a></p>

    <h4>Magick API</h4>

    <p>ExportImagePixels</p>
  </div>

  <div class="sig">
    <h3 id="extent">extent</h3>

    <p><span class="arg">img</span>.extent(<span class=
    "arg">width</span>, <span class="arg">height</span>,
    <span class="arg">x</span>=0, <span class="arg">y</span>=0)
    -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>If <span class="arg">width</span> or <span class=
    "arg">height</span> is greater than the target image's width or
    height, extends the width and height of the target image to the
    specified values. The new pixels are set to the background
    color. If <span class="arg">width</span> or <span class=
    "arg">height</span> is less than the target image's width or
    height, crops the target image.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>width</dt>

      <dd>The width of the new image</dd>

      <dt>height</dt>

      <dd>The height of the new image</dd>

      <dt>x, y</dt>

      <dd>The upper-left corner of the new image is positioned at
      -<span class="arg">x</span>, -<span class=
      "arg">y</span>.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Notes</h4>

    <p>The new image is composed over the background using the
    composite operator specified by target image's <a href=
    "imageattrs.html#compose">compose</a> attribute.</p>

    <h4>Magick API</h4>

    <p>ExtentImage</p>
  </div>

  <div class="sig">
    <h3 id="find_similar_region">find_similar_region</h3>

    <p><span class=
    "arg">img</span>.find_similar_region(<span class="arg">target</span>,
    <span class="arg">x</span>=0, <span class="arg">y</span>=0)
    -&gt; <em>[rx, ry]</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>This interesting method searches for a rectangle in the
    image that is <em>similar</em> to the target. For the rectangle
    to be <em>similar</em> each pixel in the rectangle must match
    the corresponding pixel in the target image within the range
    specified by the <code>fuzz</code> attributes of the image and
    the target image.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>target</dt>

      <dd>An image that forms the target of the search. This image
      can be any size.</dd>

      <dt>x, y</dt>

      <dd>The starting <em>x-</em> and <em>y-</em>offsets for the
      search. If omitted both <span class="arg">x</span> and
      <span class="arg">y</span> default to 0.</dd>
    </dl>

    <h4>Returns</h4>

    <p>If the search succeeds, the return value is an array with 2
    elements. These elements are the <em>x-</em> and
    <em>y-</em>offsets of the matching rectangle. If the search
    fails the return value is <code>nil</code>.</p>

    <h4>Magick API</h4>

    <p>IsImageSimilar</p>
  </div>

  <div class="sig">
    <h3 id="flip">flip</h3>

    <p><span class="arg">img</span>.flip -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Create a vertical mirror image of the receiver.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('flip.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/flip.jpg'" src="ex/flip.jpg" alt="flip example"
    title="Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image1.html#affine_transform">affine_transform</a>,
    <a href="#flip_bang">flip!</a>, <a href="#flop">flop</a>,
    <a href="image3.html#rotate">rotate</a>, <a href=
    "image3.html#transpose">transpose</a>, <a href=
    "image3.html#transverse">transverse</a></p>

    <h4>Magick API</h4>

    <p>FlipImage</p>
  </div>

  <div class="sig">
    <h3 id="flip_bang">flip!</h3>

    <p><span class="arg">img</span>.flip! -&gt; <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>In-place form of <a href="#flip">flip</a>.</p>

    <h4>Returns</h4>

    <p>self</p>
  </div>

  <div class="sig">
    <h3 id="flop">flop</h3>

    <p><span class="arg">img</span>.flop -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Create a horizontal mirror image of the receiver.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('flop.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/flop.jpg'" src="ex/flop.jpg" alt="flop example"
    title="Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image1.html#affine_transform">affine_transform</a>,
    <a href="#flip">flip</a>, <a href="#flop_bang">flop!</a>,
    <a href="image3.html#rotate">rotate</a>, <a href=
    "image3.html#transpose">transpose</a>, <a href=
    "image3.html#transverse">transverse</a></p>

    <h4>Magick API</h4>

    <p>FlopImage</p>
  </div>

  <div class="sig">
    <h3 id="flop_bang">flop!</h3>

    <p><span class="arg">img</span>.flop! -&gt; <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>In-place form of <a href="#flop">flop</a>.</p>

    <h4>Returns</h4>

    <p>self</p>
  </div>

  <div class="sig">
    <h3 id="frame">frame</h3>

    <p><span class="arg">img</span>.frame(<span class=
    "arg">width</span>=25, <span class="arg">height</span>=25,
    <span class="arg">x</span>=25, <span class="arg">y</span>=25,
    <span class="arg">inner_bevel</span>=6, <span class=
    "arg">outer_bevel</span>=6, <span class=
    "arg">color</span>=<code><a href=
    "imageattrs.html#matte_color">matte_color</a></code>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Adds a simulated 3D border.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>width</dt>

      <dd>The width of the left and right sides.</dd>

      <dt>height</dt>

      <dd>The height of the top and bottom sides.</dd>

      <dt>x, y</dt>

      <dd>The image does not have to be centered in the border.
      These two arguments specify the offset of the image from the
      upper-left outside corner of the border.</dd>

      <dt>inner_bevel, outer_bevel</dt>

      <dd>The width of the inner and outer shadows of the border.
      These values should be much smaller than the width and height
      and cannot be greater than 1/2 the lesser of the width or
      height.</dd>

      <dt>color</dt>

      <dd>The border color. By default the color is the <a href=
      "imageattrs.html#matte_color">matte color</a>.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('frame.rb.html')">
    <!-- This img tag displays the original image when moused over -->
     <img style="padding:25px; display:none" id="frameless"
    onmouseout="this.style.display='none';framed.style.display='';"
    src="ex/images/Flower_Hat.jpg" alt="frame example" title=
    "Click to see the example script" /> 
    <!-- This img tag displays the framed image when the mouse is not over -->
     <img onmouseover=
    "this.style.display='none';frameless.style.display='';" src=
    "ex/frame.jpg" alt="frame example" /></a> <img src=
    "ex/images/spin.gif" alt="" style="margin-bottom: 280px" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image1.html#border">border</a></p>

    <h4>Magick API</h4>

    <p>FrameImage</p>
  </div>

  <div class="sig">
    <h3 id="freeze">freeze</h3>

    <p><span class="arg">img</span>.freeze -&gt; <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Prevent further modifications to the image.</p>

    <h4>Returns</h4>

    <p>self</p>
  </div>

  <div class="sig">
    <h3 id="function_channel">function_channel</h3>

    <p><span class="arg">img</span>.function_channel(<span class=
    "arg">function</span> [, <span class=
    "arg">parameters</span>...][, <span class=
    "arg">channel</span>...]) -&lt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p><span class="imquote">Apply a function to channel
    values.</span> This method is equivalent to the <a href=
    "http://www.imagemagick.org/script/command-line-options.php#function">
    convert -function</a> option. See the ImageMagick documentation
    for more information.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>function</dt>

      <dd>
        One of the following values.

        <ul>
          <li><code>PolynomialFunction</code></li>

          <li><code>SinusoidFunction</code></li>

          <li><code>ArcsinFunction</code></li>

          <li><code>ArctanFunction</code></li>
        </ul>Some of these values are not available in earlier
        versions of ImageMagick. To find out which values are
        available, enter the following statement in irb:
        <pre>
Magick::MagickFunction.values {|value| p value}
</pre>
      </dd>

      <dt>parameters</dt>

      <dd>One or more floating-point numbers. The number of
      parameters depends on the function. See the ImageMagick
      documentation for details.</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, the red, green, and blue channels are
      used.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>
    <pre>
img2 = img.function_channel(Magick::PolynomialFunction,
                            -25, 53, -36, 8.3, 0.2)
</pre>

    <h4>See also</h4>

    <p><a href=
    "image3.html#quantum_operator">quantum_operator</a></p>
  </div>

  <div class="sig">
    <h3 id="gamma_channel">gamma_channel</h3>

    <p><span class="arg">img</span>.gamma_channel(<span class=
    "arg">gamma</span>, [<span class="arg">channel</span>...]) =
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Gamma-correct a particular image channel.
    The same image viewed on different devices will have perceptual
    differences in the way the image's intensities are represented
    on the screen.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>gamma</dt>

      <dd class="imquote">Values typically range from 0.8 to 2.3.
      You can also reduce the influence of a particular channel
      with a gamma value of 0.</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, all the channels are corrected using
      the <span class="arg">gamma</span> value.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p>The older <a href="#gamma_correct">gamma_correct</a> method
    is implemented in terms of <code>gamma_channel</code>.</p>

    <h4>Magick API</h4>

    <p>GammaImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="gamma_correct">gamma_correct</h3>

    <p><span class="arg">img</span>.gamma_correct(<span class=
    "arg">red_gamma</span>[,<span class="arg">green_gamma</span>[,
    <span class="arg">blue_gamma</span>]]) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Gamma-correct an image. The same image viewed on different
    devices will have perceptual differences in the way the image's
    intensities are represented on the screen.</p>

    <h4>Arguments</h4>

    <p>You must specify at least <code>red_gamma</code>. Omitted
    arguments take on the value of the last specified argument.
    <span class="imquote">Values typically range from 0.8 to
    2.3.</span></p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#gamma_channel">gamma_channel</a></p>

    <h4>Magick API</h4>

    <p>GammaImage</p>
  </div>

  <div class="sig">
    <h3 id="gaussian_blur">gaussian_blur</h3>

    <p><span class="arg">img</span>.gaussian_blur(<span class=
    "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
    -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Blurs an image. We convolve the image with a
    Gaussian operator of the given radius and standard deviation
    (sigma).</p>

    <h4>Arguments</h4>

    <dl>
      <dt>radius</dt>

      <dd>A <code>Float</code> value representing <span class=
      "imquote">the radius of the Gaussian, in pixels, not counting
      the center pixel.</span></dd>

      <dt>sigma</dt>

      <dd>A <code>Float</code> value representing the standard
      deviation of the Gaussian operator, in pixels. This argument
      must be &gt; 0.0.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p><code>gaussian_blur(0.0, 3.0)</code></p>

    <p class="rollover"><a href=
    "javascript:popup('gaussian_blur.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/gaussian_blur.jpg'" src="ex/gaussian_blur.jpg"
    alt="gaussian_blur example" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image1.html#blur_image">blur_image</a>, <a href=
    "#motion_blur">motion_blur</a>, <a href=
    "image3.html#radial_blur">radial_blur</a>, <a href=
    "image3.html#selective_blur_channel">selective_blur_channel</a></p>

    <h4>Magick API</h4>

    <p>GaussianBlurImage</p>
  </div>

  <div class="sig">
    <h3 id="gaussian_blur_channel">gaussian_blur_channel</h3>

    <p><span class=
    "arg">img</span>.gaussian_blur_channel(<span class=
    "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0[,
    <span class="arg">channel</span>...]) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Blurs the selected channel or channels using a Gaussian
    operator of the specified radius and standard deviation.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>radius</dt>

      <dd>A <code>Float</code> value representing <span class=
      "imquote">the radius of the Gaussian, in pixels, not counting
      the center pixel.</span></dd>

      <dt>sigma</dt>

      <dd>A <code>Float</code> value representing the standard
      deviation of the Gaussian operator, in pixels. This argument
      must be &gt; 0.0.</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, all the channels are blurred. This is
      the same as using <a href=
      "#gaussian_blur">gaussian_blur</a>.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="image1.html#blur_channel">blur_channel</a>,
    <a href="#motion_blur">motion_blur</a>, <a href=
    "image3.html#radial_blur">radial_blur</a>, <a href=
    "image3.html#selective_blur_channel">selective_blur_channel</a></p>

    <h4>Magick API</h4>

    <p>GaussianBlurImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="get_exif_by_entry">get_exif_by_entry</h3>

    <p><span class="arg">img</span>.get_exif_by_entry(<span class=
    "arg">[name]*</span>) -&gt; <em>array</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns the value associated with the specified EXIF entry
    name or names. If no names are specified, returns all the
    entries. The return value is an array containing one or more
    [name, value] elements.</p>

    <h4>Arguments</h4>

    <p>Zero or more EXIF entry names.</p>

    <h4>Returns</h4>

    <p>The elements in the returned array are 2-element arrays in
    the form [name, value]. If ImageMagick does not know the name
    for an entry it uses "unknown." There may be more than one
    entry for "unknown" in the returned array. If there is no entry
    with the specified name the value is set to
    <code>nil</code>.</p>

    <h4>Example</h4>
    <pre>
image.get_exif_by_entry('Make') &raquo; [["Make", "Canon"]]
image.get_exif_by_entry("ShutterSpeedValue") &raquo;
    [["ShutterSpeedValue", "189/32"]]
image.get_exif_by_entry() &raquo;
    [["Make", "Canon"], ["ShutterSpeedValue", "189/32"] ...]
</pre>

    <h4>See also</h4>

    <p><a href="#get_exif_by_number">get_exif_by_number</a></p>
  </div>

  <div class="sig">
    <h3 id="get_exif_by_number">get_exif_by_number</h3>

    <p><span class="arg">img</span>.get_exif_by_number(<span class=
    "arg">[tag]*</span>) -&gt; <em>hash</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns the value associated with the specified EXIF tag
    number or numbers. If no numbers are specified, returns all the
    tags. The return value is a hash. The hash keys are EXIF tag
    numbers. The values are the values associated with the
    tags.</p>

    <h4>Arguments</h4>

    <p>Zero or more EXIF tag numbers.</p>

    <h4>Returns</h4>

    <p>A hash. If there is no tag with the specified number the
    value is set to <code>nil</code>.</p>

    <h4>Example</h4>
    <pre>
image.get_exif_by_number(271) &raquo; {271=&gt;"Canon"}
image.get_exif_by_number(37377) &raquo; {37377=&gt;"189/32"}
image.get_exif_by_number() &raquo;
    {271=&gt;"Canon", 37377=&gt;"189/32" ...}
</pre>

    <h4>See also</h4>

    <p><a href="#get_exif_by_entry">get_exif_by_entry</a></p>
  </div>

  <div class="sig">
    <h3 id="get_iptc_dataset">get_iptc_dataset</h3>

    <p><span class="arg">img</span>.get_iptc_dataset(<span class=
    "arg">ds</span>) -&gt; <em>string</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Retrieves the data field for the specified DataSet, or
    <code>nil</code> if the DataSet is not used or the data field
    has length 0.</p>

    <h4>Arguments</h4>

    <p>RMagick defines the following constants for use as arguments
    to this method. All the constants are in the Magick::IPTC
    namespace. Notice that some DataSets have two names.</p>

    <table id="iptc" class="striped" summary=
    "IPTC dataset constants">
      <tr>
        <th>Constant</th>

        <th>Record:DataSet</th>
      </tr>

      <tr>
        <td>Envelope::Model_Version</td>

        <td class="ds">1:00</td>
      </tr>

      <tr>
        <td>Envelope::Destination</td>

        <td class="ds">1:05</td>
      </tr>

      <tr>
        <td>Envelope::UNO</td>

        <td class="ds">1:100</td>
      </tr>

      <tr>
        <td>Envelope::Unique_Name_of_Object</td>

        <td class="ds">1:100</td>
      </tr>

      <tr>
        <td>Envelope::ARM_Identifier</td>

        <td class="ds">1:120</td>
      </tr>

      <tr>
        <td>Envelope::ARM_Version</td>

        <td class="ds">1:122</td>
      </tr>

      <tr>
        <td>Envelope::File_Format</td>

        <td class="ds">1:20</td>
      </tr>

      <tr>
        <td>Envelope::File_Format_Version</td>

        <td class="ds">1:22</td>
      </tr>

      <tr>
        <td>Envelope::Service_Identifier</td>

        <td class="ds">1:30</td>
      </tr>

      <tr>
        <td>Envelope::Envelope_Number</td>

        <td class="ds">1:40</td>
      </tr>

      <tr>
        <td>Envelope::Product_ID</td>

        <td class="ds">1:50</td>
      </tr>

      <tr>
        <td>Envelope::Envelope_Priority</td>

        <td class="ds">1:60</td>
      </tr>

      <tr>
        <td>Envelope::Date_Sent</td>

        <td class="ds">1:70</td>
      </tr>

      <tr>
        <td>Envelope::Time_Sent</td>

        <td class="ds">1:80</td>
      </tr>

      <tr>
        <td>Envelope::Coded_Character_Set</td>

        <td class="ds">1:90</td>
      </tr>

      <tr>
        <td>Application::Object_Type_Reference</td>

        <td class="ds">2:03</td>
      </tr>

      <tr>
        <td>Application::Object_Name</td>

        <td class="ds">2:05</td>
      </tr>

      <tr>
        <td>Application::Title</td>

        <td class="ds">2:05</td>
      </tr>

      <tr>
        <td>Application::Edit_Status</td>

        <td class="ds">2:07</td>
      </tr>

      <tr>
        <td>Application::Editorial_Update</td>

        <td class="ds">2:08</td>
      </tr>

      <tr>
        <td>Application::Urgency</td>

        <td class="ds">2:10</td>
      </tr>

      <tr>
        <td>Application::Country_Primary_Location_Code</td>

        <td class="ds">2:100</td>
      </tr>

      <tr>
        <td>Application::Country_Primary_Location_Name</td>

        <td class="ds">2:101</td>
      </tr>

      <tr>
        <td>Application::Original_Transmission_Reference</td>

        <td class="ds">2:103</td>
      </tr>

      <tr>
        <td>Application::Headline</td>

        <td class="ds">2:105</td>
      </tr>

      <tr>
        <td>Application::Credit</td>

        <td class="ds">2:110</td>
      </tr>

      <tr>
        <td>Application::Source</td>

        <td class="ds">2:115</td>
      </tr>

      <tr>
        <td>Application::Copyright_Notice</td>

        <td class="ds">2:116</td>
      </tr>

      <tr>
        <td>Application::Contact</td>

        <td class="ds">2:118</td>
      </tr>

      <tr>
        <td>Application::Subject_Reference</td>

        <td class="ds">2:12</td>
      </tr>

      <tr>
        <td>Application::Abstract</td>

        <td class="ds">2:120</td>
      </tr>

      <tr>
        <td>Application::Caption</td>

        <td class="ds">2:120</td>
      </tr>

      <tr>
        <td>Application::Caption_Writer</td>

        <td class="ds">2:122</td>
      </tr>

      <tr>
        <td>Application::Editor</td>

        <td class="ds">2:122</td>
      </tr>

      <tr>
        <td>Application::Rasterized_Caption</td>

        <td class="ds">2:125</td>
      </tr>

      <tr>
        <td>Application::Image_Type</td>

        <td class="ds">2:130</td>
      </tr>

      <tr>
        <td>Application::Image_Orientation</td>

        <td class="ds">2:131</td>
      </tr>

      <tr>
        <td>Application::Language_Identifier</td>

        <td class="ds">2:135</td>
      </tr>

      <tr>
        <td>Application::Category</td>

        <td class="ds">2:15</td>
      </tr>

      <tr>
        <td>Application::Audio_Type</td>

        <td class="ds">2:150</td>
      </tr>

      <tr>
        <td>Application::Audio_Sampling_Rate</td>

        <td class="ds">2:151</td>
      </tr>

      <tr>
        <td>Application::Audio_Sampling_Resolution</td>

        <td class="ds">2:152</td>
      </tr>

      <tr>
        <td>Application::Audio_Duration</td>

        <td class="ds">2:153</td>
      </tr>

      <tr>
        <td>Application::Audio_Outcue</td>

        <td class="ds">2:154</td>
      </tr>

      <tr>
        <td>Application::Supplemental_Category</td>

        <td class="ds">2:20</td>
      </tr>

      <tr>
        <td>Application::ObjectData_Preview_File_Format</td>

        <td class="ds">2:200</td>
      </tr>

      <tr>
        <td>
        Application::ObjectData_Preview_File_Format_Version</td>

        <td class="ds">2:201</td>
      </tr>

      <tr>
        <td>Application::ObjectData_Preview_Data</td>

        <td class="ds">2:202</td>
      </tr>

      <tr>
        <td>Application::Fixture_Identifier</td>

        <td class="ds">2:22</td>
      </tr>

      <tr>
        <td>Application::Keywords</td>

        <td class="ds">2:25</td>
      </tr>

      <tr>
        <td>Application::Content_Location_Code</td>

        <td class="ds">2:26</td>
      </tr>

      <tr>
        <td>Application::Content_Location_Name</td>

        <td class="ds">2:27</td>
      </tr>

      <tr>
        <td>Application::Release_Date</td>

        <td class="ds">2:30</td>
      </tr>

      <tr>
        <td>Application::Release_Time</td>

        <td class="ds">2:35</td>
      </tr>

      <tr>
        <td>Application::Expiration_Time</td>

        <td class="ds">2:35</td>
      </tr>

      <tr>
        <td>Application::Expiration_Date</td>

        <td class="ds">2:37</td>
      </tr>

      <tr>
        <td>Application::Special_Instructions</td>

        <td class="ds">2:40</td>
      </tr>

      <tr>
        <td>Application::Action_Advised</td>

        <td class="ds">2:42</td>
      </tr>

      <tr>
        <td>Application::Reference_Service</td>

        <td class="ds">2:45</td>
      </tr>

      <tr>
        <td>Application::Reference_Date</td>

        <td class="ds">2:47</td>
      </tr>

      <tr>
        <td>Application::Reference_Number</td>

        <td class="ds">2:50</td>
      </tr>

      <tr>
        <td>Application::Date_Created</td>

        <td class="ds">2:55</td>
      </tr>

      <tr>
        <td>Application::Time_Created</td>

        <td class="ds">2:60</td>
      </tr>

      <tr>
        <td>Application::Digital_Creation_Date</td>

        <td class="ds">2:62</td>
      </tr>

      <tr>
        <td>Application::Digital_Creation_Time</td>

        <td class="ds">2:63</td>
      </tr>

      <tr>
        <td>Application::Originating_Program</td>

        <td class="ds">2:65</td>
      </tr>

      <tr>
        <td>Application::Program_Version</td>

        <td class="ds">2:70</td>
      </tr>

      <tr>
        <td>Application::Object_Cycle</td>

        <td class="ds">2:75</td>
      </tr>

      <tr>
        <td>Application::Author</td>

        <td class="ds">2:80</td>
      </tr>

      <tr>
        <td>Application::By_Line</td>

        <td class="ds">2:80</td>
      </tr>

      <tr>
        <td>Application::Author_Position</td>

        <td class="ds">2:85</td>
      </tr>

      <tr>
        <td>Application::By_Line_Title</td>

        <td class="ds">2:85</td>
      </tr>

      <tr>
        <td>Application::City</td>

        <td class="ds">2:90</td>
      </tr>

      <tr>
        <td>Application::Sub_Location</td>

        <td class="ds">2:92</td>
      </tr>

      <tr>
        <td>Application::Province</td>

        <td class="ds">2:95</td>
      </tr>

      <tr>
        <td>Application::State</td>

        <td class="ds">2:95</td>
      </tr>

      <tr>
        <td>Pre_ObjectData_Descriptor::Size_Mode</td>

        <td class="ds">7:10</td>
      </tr>

      <tr>
        <td>Pre_ObjectData_Descriptor::Max_Subfile_Size</td>

        <td class="ds">7:20</td>
      </tr>

      <tr>
        <td>
        Pre_ObjectData_Descriptor::ObjectData_Size_Announced</td>

        <td class="ds">7:90</td>
      </tr>

      <tr>
        <td>Pre_ObjectData_Descriptor::Maximum_ObjectData_Size</td>

        <td class="ds">7:95</td>
      </tr>

      <tr>
        <td>ObjectData::Subfile</td>

        <td class="ds">8:10</td>
      </tr>

      <tr>
        <td>
        Post_ObjectData_Descriptor::Confirmed_ObjectData_Size</td>

        <td class="ds">9:10</td>
      </tr>
    </table>

    <h4>Example</h4>
    <pre>
img.get_iptc_dataset(Magick::IPTC::Application::Keywords)
</pre>

    <h4>Returns</h4>

    <p>The data field or nil</p>

    <h4>See also</h4>

    <p><a href=
    "image1.html#each_iptc_dataset">each_iptc_dataset</a>, <a href=
    "imageattrs.html#iptc_profile">iptc_profile</a></p>
  </div>

  <div class="sig">
    <h3 id="get_pixels">get_pixels</h3>

    <p><span class="arg">img</span>.get_pixels(<span class=
    "arg">x</span>, <span class="arg">y</span>, <span class=
    "arg">columns</span>, <span class="arg">rows</span>) -&gt;
    <em>array</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Gets the pixels from the specified rectangle within the
    image.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>x, y</dt>

      <dd>The x- and y-offset of the rectangle within the
      image.</dd>

      <dt>columns, rows</dt>

      <dd>The width and height of the rectangle.</dd>
    </dl>

    <h4>Returns</h4>

    <p>An array of <a href="struct.html#Pixel">pixels</a>. There
    will be <code>columns*rows</code> elements in the array.</p>

    <h4>Example</h4>

    <p>This example <a href="image1.html#composite">composites</a>
    a black-and-white version of an image over the same image in
    its original colors. It uses <code>get_pixels</code> and
    <a href="image3.html#store_pixels">store_pixels</a> to make
    each column of pixels in the black-and-white image slightly
    more opaque than the column on its left, so that the resulting
    composite changes smoothly from color on the left to
    black-and-white on the right.</p><!--
                                                                Reduce the size of the original image by specifying
                                                                the size of the example image.
                                                                -->

    <p class="rollover"><a href=
    "javascript:popup('get_pixels.rb.html')"><img width="384"
    height="249" onmouseover="this.src='ex/images/Red_Rocks.jpg'"
    onmouseout="this.src='ex/get_pixels.jpg'" src=
    "ex/get_pixels.jpg" title="Click to see the example script"
    alt="get_pixels example" /></a> <img src="ex/images/spin.gif"
    alt="" class="spin" style="left:388px" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image3.html#store_pixels">store_pixels</a>,
    <a href="image3.html#view">view</a></p>

    <h4>Magick API</h4>

    <p>AcquireImagePixels</p>
  </div>

  <div class="sig">
    <h3 id="gray_q">gray?</h3>

    <p><span class="arg">img</span>.gray? -&gt; <code>true</code>
    or <code>false</code></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns <code>true</code> if all the pixels in the image
    have the same red, green, and blue intensities.</p>

    <h4>Returns</h4>

    <p><code>true</code> or <code>false</code></p>

    <h4>See also</h4>

    <p><a href="#monochrome_q">monochrome?</a></p>

    <h4>Magick API</h4>

    <p>IsGrayImage</p>
  </div>

  <div class="sig">
    <h3 id="grey_q">grey?</h3>

    <p><span class="arg">img</span>.grey? -&gt; <code>true</code>
    or <code>false</code></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Synonym for <a href="#gray_q">gray?</a></p>
  </div>

  <div class="sig">
    <h3 id="histogram_q">histogram?</h3>

    <p><span class="arg">img</span>.histogram? -&gt;
    <code>true</code> or <code>false</code></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns <code>true</code> if the image has 1024 unique
    colors or less.</p>

    <h4>Returns</h4>

    <p><code>true</code> or <code>false</code></p>

    <h4>Magick API</h4>

    <p>IsHistogramImage</p>
  </div>

  <div class="sig">
    <h3 id="implode">implode</h3>

    <p><span class="arg">img</span>.implode(<span class=
    "arg">amount</span>=0.50) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>A funhouse mirror effect. See the example below.</p>

    <h4>Arguments</h4>

    <p>A <code>Float</code> value. Increasing the absolute value of
    the argument increases the effect. The value may be positive
    for implosion, or negative for explosion. The default is
    0.50.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>This example is an animated image. Mouse over the image to
    start the animation.</p>

    <p class="rollover"><a href=
    "javascript:popup('implode.rb.html')"><img onmouseover=
    "this.src='ex/implode.gif'" onmouseout=
    "this.src='ex/images/Flower_Hat.jpg'" src=
    "ex/images/Flower_Hat.jpg" alt="implode example" title=
    "Click the image to see the example script" /></a><img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the animation" /></p>

    <h4>Magick API</h4>

    <p>ImplodeImage</p>
  </div>

  <div class="sig">
    <h3 id="import_pixels">import_pixels</h3>

    <p><span class="arg">img</span>.import_pixels(<span class=
    "arg">x</span>, <span class="arg">y</span>, <span class=
    "arg">columns</span>, <span class="arg">rows</span>,
    <span class="arg">map</span>, <span class="arg">pixels</span>,
    <span class="arg">type</span>=CharPixel) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Replaces the pixels in the specified rectangle with pixel
    data from the supplied array or string. When the <span class=
    "arg">pixels</span> argument is an array of pixel data, this
    method is the reverse of <code>export_pixels</code>. When the
    <span class="arg">pixels</span> argument is a string,
    <code>import_pixels</code> is ideal for loading very large
    amounts of binary pixel data.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>x, y</dt>

      <dd>The offset of the rectangle from the upper-left corner of
      the image</dd>

      <dt>columns, rows</dt>

      <dd>The width and height of the rectangle</dd>

      <dt>map</dt>

      <dd>A string describing <span class="imquote">the expected
      ordering of the pixel array. It can be any combination or
      order of R = red, G = green, B = blue, A = alpha, C = cyan, Y
      = yellow, M = magenta, K = black, or I = intensity (for
      grayscale).</span></dd>

      <dt>pixels</dt>

      <dd>
        The pixel data. Pixel data can be supplied as an array or
        as a string.

        <dl>
          <dt>If <span class="arg">pixels</span> responds to
          <code>:to_str</code></dt>

          <dd><code>import_pixels</code> assumes that <span class=
          "arg">pixels</span> can be converted to a string by
          <code>to_str</code> and that the result is a C array of
          the type specified by <span class="arg">type</span>
          containing binary pixel data in the order specified by
          <span class="arg">map</span>. The elements in the buffer
          must be in the range specified by <span class=
          "arg">type</span>.</dd>

          <dt>Otherwise</dt>

          <dd><code>import_pixels</code> assumes that <span class=
          "arg">pixels</span> is an array or an object that can be
          converted to an array by the <code>Kernel::Array</code>
          method. The elements in the array must be
          <code>Numeric</code> values in the range
          [0..QuantumRange]. In either case, the pixel data must be
          stored in scanline order: left-to-right and
          top-to-bottom.</dd>
        </dl>
      </dd>

      <dt>type</dt>

      <dd>A <a href="constants.html#StorageType">StorageType</a>
      value that specifies the type and range of the pixel data
      when <span class="arg">pixels</span> is a string.</dd>
    </dl>

    <h4>Returns</h4>

    <p>The image as transformed by the pixel data.</p>

    <h4>Example</h4>
    <pre>
# Replace the r'th scanline of the image using
# pixel data stored in red-green-blue order.
img.import_pixels(0, r, img.columns, 1, "RGB", scanline);
</pre>

    <h4>Example</h4>

    <p>This example is contrived since there's no need to convert
    the <code>pixels</code> array into a string by calling
    <code>pack</code>, but it does demonstrate the use of a string
    <span class="arg">pixels</span> argument. Note that this
    example assumes that ImageMagick is configured with
    QuantumDepth=8.</p>
    <pre>
hat = Image.read("Flower_Hat.jpg").first
pixels = hat.export_pixels(0, 0, hat.columns, hat.rows, "RGB")
char_buffer = pixels.pack("C*")
img = Image.new(hat.columns, hat.rows)
img.import_pixels(0, 0, hat.columns, hat.rows, "RGB", char_buffer, CharPixel)
</pre>

    <h4>See also</h4>

    <p><a href="image1.html#constitute">constitute</a>, <a href=
    "image2.html#export_pixels">export_pixels</a>, <a href=
    "image3.html#store_pixels">store_pixels</a></p>

    <h4>Magick API</h4>

    <p>ImportImagePixels</p>

    <h4>Note</h4>

    <p>This method replaces the <code>constitute</code> method.</p>
  </div>

  <div class="sig">
    <h3 id="inspect">inspect</h3>

    <p><span class="arg">img</span>.inspect -&gt;
    <em>string</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Constructs a description of the image as a string. The
    string contains some or all of the following fields:</p>

    <dl>
      <dt>original_filename=&gt;</dt>

      <dd>if different from the current filename.</dd>

      <dt>filename</dt>

      <dd>the current filename</dd>

      <dt>[scene]</dt>

      <dd>the scene number, if the image is part of an image
      sequence</dd>

      <dt>format</dt>

      <dd>the image format (GIF or JPEG, for example)</dd>

      <dt>original width x height</dt>

      <dd>if different from the current width x height</dd>

      <dt>page width x height + x-offset + y-offset</dt>

      <dd>if any of these fields is non-zero</dd>

      <dt>storage class</dt>

      <dd><em>DirectClass</em> or <em>PseudoClass</em></dd>

      <dt>number of colors</dt>

      <dd>total number of colors used in the image</dd>

      <dt>mean error per pixel/normalized mean error/normalized
      maximum error</dt>

      <dd>for PseudoClass images, if present</dd>

      <dt><em>N</em>-bit</dt>

      <dd>bit depth</dd>

      <dt>blob size</dt>

      <dd>if present</dd>
    </dl>

    <h4>Example</h4>
    <pre>
f.inspect &raquo; "images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9kb"
</pre>
  </div>

  <div class="sig">
    <h3 id="level">level</h3>

    <p><span class="arg">img</span>.level(<span class=
    "arg">black_point</span>=<code>0.0</code>, <span class=
    "arg">white_point</span>=<code>QuantumRange</code>,
    <span class="arg">gamma</span>=<code>1.0</code>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Adjusts the levels of an image by scaling
    the colors falling between specified white and black points to
    the full available quantum range. The parameters provided
    represent the black, mid, and white points. The black point
    specifies the darkest color in the image. Colors darker than
    the black point are set to zero. Gamma specifies a gamma
    correction to apply to the image. White point specifies the
    lightest color in the image. Colors brighter than the white
    point are set to the maximum quantum value</p>

    <h4>Arguments</h4>

    <dl>
      <dt>black_point</dt>

      <dd>A black point level in the range 0-<a href=
      "constants.html#Miscellaneous_constants">QuantumRange</a>.
      The default is 0.0.</dd>

      <dt>mid_point</dt>

      <dd>A white point level in the range 0..QuantumRange. The
      default is <a href=
      "constants.html#Miscellaneous_constants">QuantumRange</a> -
      <span class="arg">black_point</span>.</dd>

      <dt>gamma</dt>

      <dd>A gamma correction in the range 0.0-10.0 The default is
      1.0.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p><code>level(0,1.50)</code></p>

    <p class="rollover"><a href=
    "javascript:popup('level.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/level.jpg'" src="ex/level.jpg" title=
    "Click to see the example script" alt="level example" /></a>
    <img src="ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the image to see the original image" /></p>

    <h4>Compatibility notes</h4>

    <p>Prior to version 1.11.0 RMagick defined the signature for
    <code>level</code> incorrectly:</p>
    <pre>
img.level(white_point, gamma, black_point) -&gt; image # wrong!
</pre>

    <p>That is, the <code>gamma</code> and <code>white_point</code>
    arguments were swapped. In an effort to maintain compatibility
    with older scripts that expect that signature,
    <code>level</code> inspects its arguments and will interchange
    <code>white_point</code> and gamma if they "look" incorrect.
    That is, if <code>gamma</code> is &gt; 10.0, or if
    <code>white_point</code> is &lt; 10.0, or if <code>gamma</code>
    &gt; <code>white_point</code>, then <code>level</code> will
    swap them.</p>

    <p>If you want to avoid this behavior, use the
    <code>level2</code> method instead. The <code>level2</code>
    method is exactly the same as <code>level</code> except that it
    never swaps the arguments.</p>

    <h4>See also</h4>

    <p><a href="#level_channel">level_channel</a></p>

    <h4>Magick API</h4>

    <p>LevelImage</p>
  </div>

  <div class="sig">
    <h3 id="level_channel">level_channel</h3>

    <p><span class="arg">img</span>.level_channel(<span class=
    "arg">channel</span>, <span class="arg">black_point</span>=0,
    <span class="arg">white_point</span>=QuantumRange -
    black_point, <span class="arg">gamma</span>=1.0) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>Same as level but operates only on the
    specified channel.

    <h4>Arguments</h4>

    <dl>
      <dt>channel</dt>

      <dd>A <a href="constants.html#ChannelType">ChannelType</a>
      value.</dd>

      <dt>black_point</dt>

      <dd>A black point level in the range 0-<a href=
      "constants.html#Miscellaneous_constants">QuantumRange</a>.
      The default is 0.0.</dd>

      <dt>white_point</dt>

      <dd>A white point level in the range 0..QuantumRange. The
      default is <a href=
      "constants.html#Miscellaneous_constants">QuantumRange</a> -
      <span class="arg">black_point</span>.</dd>

      <dt>gamma</dt>

      <dd>A gamma correction in the range 0.0-10.0 The default is
      1.0.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#level">level</a>, <a href=
    "#levelize_channel">levelize_channel</a></p>

    <h4>Magick API</h4>

    <p>LevelImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="level_colors">level_colors</h3>

    <p><span class="arg">img</span>.level_colors(<span class=
    "arg">black_color</span>="black", <span class=
    "arg">white_color</span>="white", <span class=
    "arg">invert</span>=<code>true</code>) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>When <span class="arg">invert</span> is true, black and
    white will be mapped to the <span class=
    "arg">black_color</span> and <span class=
    "arg">white_color</span> colors, compressing all other colors
    linearly. When <span class="arg">invert</span> is false, black
    and white will be mapped to the <span class=
    "arg">black_color</span> and <span class=
    "arg">white_color</span> colors, stretching all other colors
    linearly. The default is <code>true</code>.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>black_color</dt>

      <dd>The color to be mapped to black. The default is
      "black".</dd>

      <dt>white_color</dt>

      <dd>The color to be mapped to white. The default is
      "white".</dd>

      <dt>invert</dt>

      <dd>See the description above.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('level_colors.rb.html')"><img onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/level_colors.jpg'" src="ex/level_colors.jpg"
    title="Click to see the example script" alt=
    "level_colors example" /></a> <img src="ex/images/spin.gif"
    alt="" class="spin" title=
    "Mouse over the image to see the original image" /></p>

    <h4>See also</h4>

    <p>This method corresponds to the +level-colors option. See
    <a href=
    "http://www.imagemagick.org/Usage/color/#level-colors">Examples
    of ImageMagick Usage</a> for more information.</p>

    <h4>Magick API</h4>

    <p>LevelImageColors</p>
  </div>

  <div class="sig">
    <h3 id="levelize_channel">levelize_channel</h3>

    <p><span class="arg">img</span>.levelize_channel(<span class=
    "arg">black_point</span>, <span class="arg">white_point</span>,
    <span class="arg">gamma</span>=1.0 [, <span class=
    "arg">channel</span>...]) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Maps black and white to the specified points. The reverse of
    <a href="#level_channel">level_channel</a>.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>black_point</dt>

      <dd>A black point level in the range 0..<a href=
      "constants.html#Miscellaneous_constants">QuantumRange</a>.
      This argument is required.</dd>

      <dt>white_point</dt>

      <dd>A white point level in the range 0..QuantumRange. The
      default is QuantumRange - <span class=
      "arg">black_point</span>.</dd>

      <dt>gamma</dt>

      <dd>A gamma correction in the range 0.0-10.0 The default is
      1.0.</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, the default channels are the red,
      green, and blue channels.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#level">level</a>, <a href=
    "#level_channel">level_channel</a></p>

    <p>This method corresponds to the +level option. See <a href=
    "http://www.imagemagick.org/Usage/color/#level_plus">Examples
    of ImageMagick Usage</a> for more information.</p>

    <h4>Magick API</h4>

    <p>LevelizeImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="linear_stretch">linear_stretch</h3>

    <p><span class="arg">img</span>.linear_stretch(<span class=
    "arg">black_point</span>[, <span class=
    "arg">white_point</span>]) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Linear with saturation stretch.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>black_point</dt>

      <dd>black out at most this many pixels. Specify an absolute
      number of pixels as a numeric value, or a percentage as a
      string in the form 'NN%'.</dd>

      <dt>white_point</dt>

      <dd>burn at most this many pixels. Specify an absolute number
      of pixels as a numeric value, or a percentage as a string in
      the form 'NN%'. This argument is optional. If not specified
      the default is <code>all pixels - black_point
      pixels</code>.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Magick API</h4>

    <p>LinearStretchImage</p>
  </div>

  <div class="sig">
    <h3 id="liquid_rescale">liquid_rescale</h3>

    <p><span class="arg">img</span>.liquid_rescale(<span class=
    "arg">new_width</span>, <span class="arg">new_height</span>,
    <span class="arg">delta_x</span>=0.0, <span class=
    "arg">rigidity</span>=0.0) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p><span class="imquote">Rescale image with seam
    carving.</span> To use this method, you must have installed and
    configured ImageMagick to use the <a href=
    "http://liblqr.wikidot.com/">Liquid Rescale Library</a>.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>new_width, new_height</dt>

      <dd>
        <p>The desired width and height. Should not exceed 200% of
        the original dimension.</p>
      </dd>

      <dt>delta_x</dt>

      <dd>
        <p class="imquote">Maximum seam transversal step (0 means
        straight seams).</p>
      </dd>

      <dt>rigidity</dt>

      <dd>
        <p class="imquote">Introduce a bias for non-straight seams
        (typically 0).</p>
      </dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Magick API</h4>

    <p>LiquidRescaleImage</p>
  </div>

  <div class="sig">
    <h3 id="magnify">magnify</h3>

    <p><span class="arg">img</span>.magnify -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>A convenience method that scales the receiver to twice its
    size.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#magnify_bang">magnify!</a>, <a href=
    "#minify">minify</a>, <a href="image3.html#resize">resize</a>,
    <a href="image3.html#scale">scale</a></p>

    <h4>Magick API</h4>

    <p>MagnifyImage</p>
  </div>

  <div class="sig">
    <h3 id="magnify_bang">magnify!</h3>

    <p><span class="arg">img</span>.magnify! -&gt;
    <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>In-place form of <a href="#magnify">magnify</a></p>

    <h4>Returns</h4>self
  </div>

  <div class="sig">
    <h3 id="map">map</h3>

    <p><span class="arg">img</span>.map(<span class=
    "arg">img</span>, <span class="arg">dither</span>=false) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Replaces the colors of an image with the
    closest color from a reference image.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>img</dt>

      <dd>The reference image. May be either another image or an
      Image object.</dd>

      <dt>dither</dt>

      <dd>If true, dithers the mapped image.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Notes</h4>

    <p>This method is deprecated when using ImageMagick 6.4.3-6 and
    later. Use <a href="image3.html#remap">remap</a> instead.</p>

    <h4>See also</h4>

    <p><a href="ilist.html#map">ImageList#map</a></p>

    <h4>Magick API</h4>

    <p>MapImage</p>
  </div>

  <div class="sig">
    <h3 id="mask">mask</h3>

    <p><span class="arg">img</span>.mask([<span class=
    "arg">image</span> or <code>nil</code>]) -&gt;
    <em>mask_image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Sets an image clip mask created from the specified mask
    image. <span class="imquote">The mask image must have the same
    dimensions as the image being masked.</span> If not, the mask
    image is resized to match. <span class="imquote">If the mask
    image has an alpha channel the opacity of each pixel is used to
    define the mask. Otherwise, the intensity (gray level) of each
    pixel is used.</span></p>

    <p>In general, if the mask image does not have an alpha
    channel, a white pixel in the mask prevents changes to the
    corresponding pixel in the image being masked, while a black
    pixel allows changes. A pixel that is neither black nor white
    will allow partial changes depending on its intensity.</p>

    <p>Use <a href="image1.html#alpha">alpha</a> to specify whether
    or not the mask image has an alpha channel.</p>

    <h4>Arguments</h4>

    <p>If the value is an imagelist, uses the current image as the
    mask image. To remove the mask, pass <code>nil</code> instead
    of an image.</p>

    <p>To get a copy of the current mask, omit the argument
    entirely.</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('mask.rb.html')"><img src="ex/mask.jpg" alt=
    "mask example" title="Click to see the example script"
    onmouseover="this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/mask.jpg'" /></a> <img src="ex/images/spin.gif"
    alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Returns</h4>

    <p>A copy of the current mask, or <code>nil</code> if no mask
    is defined.</p>

    <h4>Notes</h4>

    <p>This method makes a copy of the image to use as the mask.
    This means that if you want to change the mask you must call
    this method to establish the changed image as the mask.</p>
  </div>

  <div class="sig">
    <h3 id="matte_fill_to_border">matte_fill_to_border</h3>

    <p><span class=
    "arg">img</span>.matte_fill_to_border(<span class=
    "arg">x</span>, <span class="arg">y</span>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Makes transparent all the pixels that are neighbors of the
    pixel at <span class="arg">x</span>,<span class="arg">y</span>
    and are not the border color.</p>

    <h4>Arguments</h4>

    <p>The x- and y- coordinates of the target pixel.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>In this example the border color is black. The fill starts
    in the center and makes all the pixels transparent until it
    reaches a black pixel. The resulting image has been composited
    over a plasma background, which shows through the transparent
    pixels.</p>

    <p class="rollover"><a href=
    "javascript:popup('matte_fill_to_border.rb.html')"><img src=
    "ex/matte_fill_to_border_after.gif" onmouseover=
    "this.src='ex/matte_fill_to_border_before.gif'" onmouseout=
    "this.src='ex/matte_fill_to_border_after.gif'" alt=
    "matte_fill_to_border example" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the image to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="#matte_floodfill">matte_floodfill</a>, <a href=
    "draw.html#matte">Draw#matte</a></p>

    <h4>Magick API</h4>

    <p>MatteFloodfillImage</p>
  </div>

  <div class="sig">
    <h3 id="matte_floodfill">matte_floodfill</h3>

    <p><span class="arg">img</span>.matte_floodfill(<span class=
    "arg">x</span>, <span class="arg">y</span>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Makes transparent all the pixels that are the same color as
    the pixel at <span class="arg">x</span>, <span class=
    "arg">y</span>, and are neighbors.</p>

    <h4>Arguments</h4>

    <p>The x- and y-coordinates of the target pixel.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>In this example the fill starts at the center pixel and
    replaces all the yellow pixels - the color of the center pixel.
    The resulting image has been composited over a plasma
    background, which shows through the transparent pixels.</p>

    <p class="rollover"><a href=
    "javascript:popup('matte_floodfill.rb.html')"><img src=
    "ex/matte_floodfill_after.gif" onmouseover=
    "this.src='ex/matte_floodfill_before.gif'" onmouseout=
    "this.src='ex/matte_floodfill_after.gif'" alt=
    "matte_floodfill example" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the image to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="#matte_replace">matte_replace</a>, <a href=
    "draw.html#matte">Draw#matte</a></p>

    <h4>Magick API</h4>

    <p>MatteFloodfilImage</p>
  </div>

  <div class="sig">
    <h3 id="matte_point">matte_point</h3>

    <p><span class="arg">img</span>.matte_point(<span class=
    "arg">x</span>, <span class="arg">y</span>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Makes the pixel at <span class="arg">x</span>, <span class=
    "arg">y</span> transparent. This method makes a copy of the
    image, just to make one pixel transparent. I recommend using
    the Draw#matte method instead.</p>

    <h4>Arguments</h4>

    <p>The x- and y-coordinates of the target pixel.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="draw.html#matte">Draw#matte</a></p>
  </div>

  <div class="sig">
    <h3 id="matte_replace">matte_replace</h3>

    <p><span class="arg">img</span>.matte_replace(<span class=
    "arg">x</span>, <span class="arg">y</span>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Makes transparent all the pixels that are the same color as
    the pixel at <span class="arg">x</span>, <span class=
    "arg">y</span>.</p>

    <h4>Arguments</h4>The x- and y-coordinates of the target pixel.

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>In this example the target pixel is a black pixel in the
    center of the uppermost circle. The matte_replace method makes
    all the black pixels in the image transparent. The resulting
    image has been composited over a plasma background, which shows
    through the transparent pixels.</p>

    <p class="rollover"><a href=
    "javascript:popup('matte_replace.rb.html')"><img onmouseover=
    "this.src='ex/matte_replace_before.gif'" onmouseout=
    "this.src='ex/matte_replace_after.gif'" src=
    "ex/matte_replace_after.gif" alt="matte_replace example" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the image to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image3.html#transparent">transparent</a>, <a href=
    "draw.html#matte">Draw#matte</a></p>

    <h4>Magick API</h4>

    <p>TransparentImage</p>
  </div>

  <div class="sig">
    <h3 id="matte_reset_bang">matte_reset!</h3>

    <p><span class="arg">img</span>.matte_reset! -&gt;
    <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Makes all the pixels in the image transparent.</p>

    <h4>Returns</h4>

    <p>self</p>

    <h4>See also</h4>

    <p><a href="imageattrs.html#opacity">opacity=</a></p>

    <h4>Magick API</h4>SetImageOpacity
  </div>

  <div class="sig">
    <h3 id="median_filter">median_filter</h3>

    <p><span class="arg">img</span>.median_filter(<span class=
    "arg">radius</span>=1.0) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Applies a digital filter that improves the
    quality of a noisy image. Each pixel is replaced by the median
    in a set of neighboring pixels as defined by radius.</p>

    <h4>Arguments</h4>

    <p>The filter radius. The larger the value, the longer it takes
    to render. Values larger than 8 or 9 may take longer than you
    want to wait, and will not have significantly better results
    than much smaller values.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>The left side of the image has been modified by <a href=
    "image1.html#add_noise">add_noise</a>. The right side has been
    filtered by median_filter(0.05).</p>

    <p><a href=
    "javascript:popup('median_filter.rb.html')"><img src="ex/median_filter.jpg"
    alt="median_filter example" /></a></p>

    <h4>See also</h4>

    <p><a href="#enhance">enhance</a>, <a href=
    "image3.html#reduce_noise">reduce_noise</a>, <a href=
    "image3.html#unsharp_mask">unsharp_mask</a></p>

    <h4>Magick API</h4>

    <p>MedianFilterImage</p>
  </div>

  <div class="sig">
    <h3 id="minify">minify</h3>

    <p><span class="arg">img</span>.minify -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>A convenience method that scales the receiver to half its
    size.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#minify_bang">minify!</a> <a href=
    "#magnify">magnify</a>, <a href=
    "image3.html#resize">resize</a>, <a href=
    "image3.html#sample">sample</a>, <a href=
    "image3.html#scale">scale</a>, <a href=
    "image3.html#thumbnail">thumbnail</a></p>

    <h4>Magick API</h4>

    <p>MinifyImage</p>
  </div>

  <div class="sig">
    <h3 id="minify_bang">minify!</h3>

    <p><span class="arg">img</span>.minify! -&gt; <em>self</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>In-place form of <a href="#minify">minify</a>.</p>

    <h4>Returns</h4>

    <p>self</p>
  </div>

  <div class="sig">
    <h3 id="modulate">modulate</h3>

    <p><span class="arg">img</span>.modulate(<span class=
    "arg">brightness</span>=1.0, <span class=
    "arg">saturation</span>=1.0, <span class="arg">hue</span>=1.0)
    -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Changes the brightness, saturation, and hue.</p>

    <h4>Arguments</h4>

    <p>The percent change in the brightness, saturation, and hue,
    represented as Float numbers. For example, 0.25 means "25%".
    All three arguments may be omitted. The default value of each
    argument is 1.0, that is, 100%.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>modulate(0.85)</p>

    <p class="rollover"><a href=
    "javascript:popup('modulate.rb.html')"><img src=
    "ex/modulate.jpg" alt="modulate example" onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/modulate.jpg'" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>ModulateImage</p>
  </div>

  <div class="sig">
    <h3 id="monochrome_q">monochrome?</h3>

    <p><span class="arg">img</span>.monochrome? -&gt; true or
    false</p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns true if all the pixels have the same red, green, and
    blue values and the values are either 0 or QuantumRange. That
    is, the image is black-and-white.</p>

    <h4>See also</h4>

    <p><a href="#gray_q">gray?</a></p>

    <h4>Magick API</h4>

    <p>IsMonochromeImage</p>
  </div>

  <div class="sig">
    <h3 id="motion_blur">motion_blur</h3>

    <p><span class="arg">img</span>.motion_blur(<span class=
    "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0,
    <span class="arg">angle</span>=0.0) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Simulates motion blur. We convolve the image
    with a Gaussian operator of the given <span class=
    "arg">radius</span> and standard deviation (<span class=
    "arg">sigma</span>). Use a radius of 0 and motion_blur selects
    a suitable radius for you. <span class="arg">Angle</span> gives
    the angle of the blurring motion.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>radius</dt>

      <dd>The radius of the Gaussian operator.</dd>

      <dt>sigma</dt>

      <dd>The standard deviation of the Gaussian operator. Must be
      non-0.</dd>

      <dt>angle</dt>

      <dd>The angle (in degrees) of the blurring motion.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('motion_blur.rb.html')"><img src=
    "ex/motion_blur.jpg" alt="motion_blur example" title=
    "Click to see the example script" onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/motion_blur.jpg'" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image1.html#blur_image">blur_image</a>, <a href=
    "#gaussian_blur">gaussian_blur</a>, <a href=
    "image3.html#radial_blur">radial_blur</a>, <a href=
    "image3.html#selective_blur_channel">selective_blur_channel</a></p>

    <h4>Magick API</h4>

    <p>MotionBlurImage</p>
  </div>

  <div class="sig">
    <h3 id="negate">negate</h3>

    <p><span class="arg">img</span>.negate(<span class=
    "arg">grayscale</span>=false) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Negates the colors in the receiver.</p>

    <h4>Arguments</h4>If the <span class="arg">grayscale</span>
    argument is true, only the grayscale values are negated.

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('negate.rb.html')"><img src="ex/negate.jpg"
    alt="negate example" onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/negate.jpg'" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="#negate_channel">negate_channel</a></p>

    <h4>Magick API</h4>

    <p>NegateImage</p>
  </div>

  <div class="sig">
    <h3 id="negate_channel">negate_channel</h3>

    <p><span class="arg">img</span>.negate_channel(<span class=
    "arg">grayscale</span>=false, [<span class=
    "arg">channel</span>...]) = <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Negate a particular image channel or channels.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>grayscale</dt>

      <dd class="imquote">if true, only negate grayscale pixels
      within the image</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, all the channels are negated.
      Specifying no channel arguments has the same effect as the
      negate method, above.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p>negate_channel(false, GreenChannel)</p>

    <p class="rollover"><a href=
    "javascript:popup('negate_channel.rb.html')"><img src=
    "ex/negate_channel.jpg" alt="negate_channel example"
    onmouseover="this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/negate_channel.jpg'" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="#negate">negate</a></p>.

    <h4>Magick API</h4>

    <p>NegateImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="normalize">normalize</h3>

    <p><span class="arg">img</span>.normalize -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Enhances the contrast of a color image by
    adjusting the pixel color to span the entire range of colors
    available.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('normalize.rb.html')"><img src=
    "ex/normalize.jpg" alt="normalize example" title=
    "Click to see the example script" onmouseover=
    "this.src='ex/images/Hot_Air_Balloons.jpg'" onmouseout=
    "this.src='ex/normalize.jpg'" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" style="left: 191px;"
    title="Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>NormalizeImage</p>

    <h4>See also</h4>

    <p><a href="#normalize_channel">normalize_channel</a></p>
  </div>

  <div class="sig">
    <h3 id="normalize_channel">normalize_channel</h3>

    <p><span class="arg">img</span>.normalize_channel([<span class=
    "arg">channel</span>...]) = <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p><span class="imquote">Enhances the contrast of a color image
    by adjusting the pixel color to span the entire range of colors
    available.</span> Only the specified channels are
    normalized.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, all the channels are normalized.
      Specifying no channel arguments has the same effect as the
      normalize method, above.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Magick API</h4>

    <p>NormalizeImageChannel</p>

    <h4>See also</h4>

    <p><a href="#normalize">normalize</a></p>
  </div>

  <div class="sig">
    <h3 id="oil_paint">oil_paint</h3>

    <p><span class="arg">img</span>.oil_paint(<span class=
    "arg">radius</span>=3.0) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p class="imquote">Applies a special effect filter that
    simulates an oil painting. Each pixel is replaced by the most
    frequent color occurring in a circular region defined by
    <span class="arg">radius</span>.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:('oil_paint.rb.html')"><img src="ex/oil_paint.jpg"
    title="Click to see the example script" onmouseover=
    "this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/oil_paint.jpg'" alt="oil_paint example" /></a>
    <img src="ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>Magick API</h4>

    <p>OilPaintImage</p>
  </div>

  <div class="sig">
    <h3 id="opaque">opaque</h3>

    <p><span class="arg">img</span>.opaque(<span class=
    "arg">target</span>, <span class="arg">fill</span>) -&gt;
    <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Changes all pixels having the target color to the fill
    color.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>target</dt>

      <dd>The color to be replaced. May be a color name or a
      <a href="struct.html#Pixel">Pixel</a></dd>

      <dt>fill</dt>

      <dd>The replacement color. May be a color name or a <a href=
      "struct.html#Pixel">Pixel</a></dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>
    <pre>
img.fuzz = 25
img = img.opaque('white', 'red')
</pre>

    <h4>See also</h4>

    <p><a href="image1.html#color_floodfill">color_floodfill</a>,
    <a href="#opaque_channel">opaque_channel</a></p>

    <h4>Magick API</h4>

    <p>OpaquePaintImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="opaque_channel">opaque_channel</h3>

    <p><span class="arg">img</span>.opaque_channel(<span class=
    "arg">target</span>, <span class="arg">fill</span>,
    <span class="arg">invert</span>=false, <span class=
    "arg">fuzz</span>=<span class="arg">img</span>.fuzz [,
    <span class="arg">channel</span>...]) -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Changes all pixels having the target color to the fill
    color. If <span class="arg">invert</span> is true, changes all
    the pixels that are <em>not</em> the target color to the fill
    color.</p>

    <h4>Arguments</h4>

    <dl>
      <dt>target</dt>

      <dd>The color to be replaced. May be a color name or a
      <a href="struct.html#Pixel">Pixel</a></dd>

      <dt>fill</dt>

      <dd>The replacement color. May be a color name or a <a href=
      "struct.html#Pixel">Pixel</a></dd>

      <dt>invert</dt>

      <dd>If true, the target pixels are all the pixels that are
      not the target color. The default is the value of the target
      image's <code>fuzz</code> attribute</dd>

      <dt>fuzz</dt>

      <dd>Colors within this distance are considered equal to the
      target color.</dd>

      <dt>channel...</dt>

      <dd>0 or more <a href=
      "constants.html#ChannelType">ChannelType</a> arguments. If no
      channels are specified, the default is <a href=
      "constants.html#ChannelType">DefaultChannels</a>.</dd>
    </dl>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>See also</h4>

    <p><a href="#opaque">opaque</a></p>

    <h4>Magick API</h4>

    <p>OpaquePaintImageChannel</p>
  </div>

  <div class="sig">
    <h3 id="opaque_q">opaque?</h3>

    <p><span class="arg">img</span>.opaque? -&gt; true or false</p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Returns true if all of the pixels in the receiver have an
    opacity value of <a href=
    "constants.html#Opacity">OpaqueOpacity</a>.</p>

    <h4>Returns</h4>

    <p>true or false</p>

    <h4>Magick API</h4>

    <p>IsOpaqueImage</p>
  </div>

  <div class="sig">
    <h3 id="ordered_dither">ordered_dither</h3>

    <p><span class="arg">img</span>.ordered_dither(<span class=
    "arg">threshold_map</span>='2x2') -&gt; <em>image</em></p>
  </div>

  <div class="desc">
    <h4>Description</h4>

    <p>Dithers the image to a predefined pattern. The <span class=
    "arg">threshold_map</span> argument defines the pattern to
    use.</p>

    <h4>Arguments</h4>

    <p>The <span class="arg">threshold_map</span> argument can be
    any of the strings listed by this command:</p>
    <pre>
convert -list Thresholds
</pre>

    <p>If you have a sufficiently new version of ImageMagick, you
    can add a <span class="imquote">a uniform color map with the
    number of levels per color channel</span> immediately following
    the <span class="arg">threshold_map</span>, separated by a
    comma. See the documentation for <a href=
    "http://redux.imagemagick.org/script/command-line-options.php#ordered-dither">
    ImageMagick's -ordered-dither option</a> for more
    information.</p>

    <h4>Returns</h4>

    <p>A new image</p>

    <h4>Example</h4>

    <p class="rollover"><a href=
    "javascript:popup('ordered_dither.rb.html')"><img src=
    "ex/ordered_dither.jpg" alt="ordered_dither example"
    onmouseover="this.src='ex/images/Flower_Hat.jpg'" onmouseout=
    "this.src='ex/ordered_dither.jpg'" title=
    "Click to see the example script" /></a> <img src=
    "ex/images/spin.gif" alt="" class="spin" title=
    "Mouse over the example to see the original image" /></p>

    <h4>See also</h4>

    <p><a href="image3.html#posterize">posterize</a>, <a href=
    "image3.html#quantize">quantize</a></p>

    <h4>Magick API</h4>

    <p>OrderedPosterizeImage</p>
  </div>

  <p class="spacer">&nbsp;</p>

  <div class="nav">
    &laquo;&nbsp;<a href="image1.html">Prev</a> | <a href=
    "index.html">Contents</a> | <a href=
    "image3.html">Next</a>&nbsp;&raquo;
  </div>
</body>
</html>