home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Doc / libimageop.tex / node1_ct.html < prev    next >
LaTeX Document  |  1997-01-17  |  3.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 42 75 | 69 6c 74 2d 69 6e 20 4d |ts of Bu|ilt-in M|
|000000b0| 6f 64 75 6c 65 20 69 6d | 61 67 65 6f 70 3c 2f 54 |odule im|ageop</T|
|000000c0| 49 54 4c 45 3e 0a 0a 3c | 4d 45 54 41 20 48 54 54 |ITLE>..<|META HTT|
|000000d0| 50 2d 45 51 55 49 56 3d | 22 43 6f 6e 74 65 6e 74 |P-EQUIV=|"Content|
|000000e0| 2d 54 79 70 65 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |-Type" C|ONTENT="|
|000000f0| 74 65 78 74 2f 68 74 6d | 6c 3b 20 63 68 61 72 73 |text/htm|l; chars|
|00000100| 65 74 3d 75 74 66 2d 38 | 22 3e 0a 3c 4d 45 54 41 |et=utf-8|">.<META|
|00000110| 20 4e 41 4d 45 3d 22 76 | 69 65 77 70 6f 72 74 22 | NAME="v|iewport"|
|00000120| 20 43 4f 4e 54 45 4e 54 | 3d 22 77 69 64 74 68 3d | CONTENT|="width=|
|00000130| 64 65 76 69 63 65 2d 77 | 69 64 74 68 2c 20 69 6e |device-w|idth, in|
|00000140| 69 74 69 61 6c 2d 73 63 | 61 6c 65 3d 31 2e 30 22 |itial-sc|ale=1.0"|
|00000150| 3e 0a 3c 4d 45 54 41 20 | 4e 41 4d 45 3d 22 47 65 |>.<META |NAME="Ge|
|00000160| 6e 65 72 61 74 6f 72 22 | 20 43 4f 4e 54 45 4e 54 |nerator"| CONTENT|
|00000170| 3d 22 4c 61 54 65 58 32 | 48 54 4d 4c 20 76 32 30 |="LaTeX2|HTML v20|
|00000180| 32 32 22 3e 0a 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |22">..<L|INK REL=|
|00000190| 22 53 54 59 4c 45 53 48 | 45 45 54 22 20 48 52 45 |"STYLESH|EET" HRE|
|000001a0| 46 3d 22 6c 69 62 69 6d | 61 67 65 6f 70 2e 63 73 |F="libim|ageop.cs|
|000001b0| 73 22 3e 0a 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |s">..<LI|NK REL="|
|000001c0| 70 72 65 76 69 6f 75 73 | 22 20 48 52 45 46 3d 22 |previous|" HREF="|
|000001d0| 6c 69 62 69 6d 61 67 65 | 6f 70 5f 6d 6e 2e 68 74 |libimage|op_mn.ht|
|000001e0| 6d 6c 22 3e 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |ml">.<LI|NK REL="|
|000001f0| 75 70 22 20 48 52 45 46 | 3d 22 6c 69 62 69 6d 61 |up" HREF|="libima|
|00000200| 67 65 6f 70 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |geop_mn.|html">.<|
|00000210| 2f 48 45 41 44 3e 0a 20 | 0a 3c 42 4f 44 59 20 62 |/HEAD>. |.<BODY b|
|00000220| 67 63 6f 6c 6f 72 3d 22 | 23 66 66 66 66 66 66 22 |gcolor="|#ffffff"|
|00000230| 20 74 65 78 74 3d 22 23 | 30 30 30 30 30 30 22 20 | text="#|000000" |
|00000240| 6c 69 6e 6b 3d 22 23 39 | 39 34 34 45 45 22 20 76 |link="#9|944EE" v|
|00000250| 6c 69 6e 6b 3d 22 23 30 | 30 30 30 66 66 22 20 61 |link="#0|000ff" a|
|00000260| 6c 69 6e 6b 3d 22 23 30 | 30 66 66 30 30 22 3e 0a |link="#0|0ff00">.|
|00000270| 0a 3c 48 31 3e 3c 41 20 | 49 44 3d 22 53 45 43 54 |.<H1><A |ID="SECT|
|00000280| 49 4f 4e 30 30 30 31 30 | 30 30 30 30 30 30 30 30 |ION00010|00000000|
|00000290| 30 30 30 30 30 30 30 22 | 3e 0a 42 75 69 6c 74 2d |0000000"|>.Built-|
|000002a0| 69 6e 20 4d 6f 64 75 6c | 65 20 69 6d 61 67 65 6f |in Modul|e imageo|
|000002b0| 70 3c 2f 41 3e 0a 3c 2f | 48 31 3e 0a 69 6d 61 67 |p</A>.</|H1>.imag|
|000002c0| 65 6f 70 0a 0a 3c 50 3e | 0a 54 68 65 20 69 6d 61 |eop..<P>|.The ima|
|000002d0| 67 65 6f 70 20 6d 6f 64 | 75 6c 65 20 63 6f 6e 74 |geop mod|ule cont|
|000002e0| 61 69 6e 73 20 73 6f 6d | 65 20 75 73 65 66 75 6c |ains som|e useful|
|000002f0| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 6f 6e 20 69 | operati|ons on i|
|00000300| 6d 61 67 65 73 2e 0a 49 | 74 20 6f 70 65 72 61 74 |mages..I|t operat|
|00000310| 65 73 20 6f 6e 20 69 6d | 61 67 65 73 20 63 6f 6e |es on im|ages con|
|00000320| 73 69 73 74 69 6e 67 20 | 6f 66 20 38 20 6f 72 20 |sisting |of 8 or |
|00000330| 33 32 20 62 69 74 20 70 | 69 78 65 6c 73 0a 73 74 |32 bit p|ixels.st|
|00000340| 6f 72 65 64 20 69 6e 20 | 50 79 74 68 6f 6e 20 73 |ored in |Python s|
|00000350| 74 72 69 6e 67 73 2e 20 | 20 54 68 69 73 20 69 73 |trings. | This is|
|00000360| 20 74 68 65 20 73 61 6d | 65 20 66 6f 72 6d 61 74 | the sam|e format|
|00000370| 20 61 73 20 75 73 65 64 | 0a 62 79 20 67 6c 2e 6c | as used|.by gl.l|
|00000380| 72 65 63 74 77 72 69 74 | 65 20 61 6e 64 20 74 68 |rectwrit|e and th|
|00000390| 65 20 69 6d 67 66 69 6c | 65 20 6d 6f 64 75 6c 65 |e imgfil|e module|
|000003a0| 2e 0a 0a 3c 50 3e 0a 54 | 68 65 20 6d 6f 64 75 6c |...<P>.T|he modul|
|000003b0| 65 20 64 65 66 69 6e 65 | 73 20 74 68 65 20 66 6f |e define|s the fo|
|000003c0| 6c 6c 6f 77 69 6e 67 20 | 76 61 72 69 61 62 6c 65 |llowing |variable|
|000003d0| 73 20 61 6e 64 20 66 75 | 6e 63 74 69 6f 6e 73 3a |s and fu|nctions:|
|000003e0| 0a 0a 3c 50 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |..<P>..<|P>.<BR>.|
|000003f0| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000400| 69 67 68 74 3a 20 31 39 | 36 2e 32 35 65 78 3b 20 |ight: 19|6.25ex; |
|00000410| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000420| 2d 30 2e 35 37 65 78 3b | 20 22 20 53 52 43 3d 22 |-0.57ex;| " SRC="|
|00000430| 69 6d 67 31 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img1.png|". ALT="|
|00000440| 5c 62 65 67 69 6e 7b 65 | 78 63 64 65 73 63 7d 7b |\begin{e|xcdesc}{|
|00000450| 65 72 72 6f 72 7d 0a 54 | 68 69 73 20 65 78 63 65 |error}.T|his exce|
|00000460| 70 74 69 6f 6e 20 69 73 | 20 72 61 69 73 65 64 20 |ption is| raised |
|00000470| 6f 6e 20 61 6c 6c 20 65 | 72 72 6f 72 73 2c 20 73 |on all e|rrors, s|
|00000480| 75 63 68 20 61 73 20 75 | 6e 6b 6e 6f 77 6e 20 6e |uch as u|nknown n|
|00000490| 75 6d 62 65 72 20 6f 66 | 20 62 69 74 73 0a 70 65 |umber of| bits.pe|
|000004a0| 72 20 70 69 78 65 6c 2c | 20 65 74 63 2e 0a 5c 65 |r pixel,| etc..\e|
|000004b0| 6e 64 7b 65 78 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |nd{excde|sc}">.<B|
|000004c0| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|000004d0| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|000004e0| 74 3a 20 32 2e 31 37 65 | 78 3b 20 76 65 72 74 69 |t: 2.17e|x; verti|
|000004f0| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 36 |cal-alig|n: 176.6|
|00000500| 38 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 32 |8ex; " S|RC="img2|
|00000510| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000520| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 63 72 6f |in{funcd|esc}{cro|
|00000530| 70 7d 7b 69 6d 61 67 65 | 5c 2c 20 70 73 69 7a 65 |p}{image|\, psize|
|00000540| 5c 2c 20 77 69 64 74 68 | 5c 2c 20 68 65 69 67 68 |\, width|\, heigh|
|00000550| 74 5c 2c 20 78 30 5c 2c | 20 79 30 5c 2c 20 78 31 |t\, x0\,| y0\, x1|
|00000560| 5c 2c 20 79 31 7d 0a 52 | 65 74 75 72 2e 2e 2e 0a |\, y1}.R|etur....|
|00000570| 2e 2e 2e 20 74 68 65 20 | 6e 65 77 20 69 6d 61 67 |... the |new imag|
|00000580| 65 20 69 73 20 6d 69 72 | 72 6f 72 65 64 2e 20 54 |e is mir|rored. T|
|00000590| 68 65 20 73 61 6d 65 0a | 68 6f 6c 64 73 20 66 6f |he same.|holds fo|
|000005a0| 72 20 74 68 65 20 79 20 | 63 6f 6f 72 64 69 6e 61 |r the y |coordina|
|000005b0| 74 65 73 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |tes..\en|d{funcde|
|000005c0| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|000005d0| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|000005e0| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 31 37 65 |E="heigh|t: 2.17e|
|000005f0| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00000600| 6e 3a 20 31 37 36 2e 36 | 38 65 78 3b 20 22 20 53 |n: 176.6|8ex; " S|
|00000610| 52 43 3d 22 69 6d 67 33 | 2e 70 6e 67 22 0a 20 41 |RC="img3|.png". A|
|00000620| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|00000630| 65 73 63 7d 7b 73 63 61 | 6c 65 7d 7b 69 6d 61 67 |esc}{sca|le}{imag|
|00000640| 65 5c 2c 20 70 73 69 7a | 65 5c 2c 20 77 69 64 74 |e\, psiz|e\, widt|
|00000650| 68 5c 2c 20 68 65 69 67 | 68 74 5c 2c 20 6e 65 77 |h\, heig|ht\, new|
|00000660| 77 69 64 74 68 5c 2c 20 | 6e 65 77 68 65 69 67 68 |width\, |newheigh|
|00000670| 74 7d 0a 52 2e 2e 2e 0a | 2e 2e 2e 72 61 74 65 64 |t}.R....|...rated|
|00000680| 20 69 6d 61 67 65 73 20 | 6f 72 0a 64 69 74 68 65 | images |or.dithe|
|00000690| 72 65 64 20 69 6d 61 67 | 65 73 20 77 69 6c 6c 20 |red imag|es will |
|000006a0| 6e 6f 74 20 6c 6f 6f 6b | 20 6e 69 63 65 20 61 66 |not look| nice af|
|000006b0| 74 65 72 20 73 63 61 6c | 69 6e 67 2e 0a 5c 65 6e |ter scal|ing..\en|
|000006c0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|000006d0| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|000006e0| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|000006f0| 74 3a 20 32 2e 31 30 65 | 78 3b 20 76 65 72 74 69 |t: 2.10e|x; verti|
|00000700| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 36 |cal-alig|n: 176.6|
|00000710| 38 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 34 |8ex; " S|RC="img4|
|00000720| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000730| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 74 6f 76 |in{funcd|esc}{tov|
|00000740| 69 64 65 6f 7d 7b 69 6d | 61 67 65 5c 2c 20 70 73 |ideo}{im|age\, ps|
|00000750| 69 7a 65 5c 2c 20 77 69 | 64 74 68 5c 2c 20 68 65 |ize\, wi|dth\, he|
|00000760| 69 67 68 74 7d 0a 52 75 | 6e 20 61 20 76 65 72 74 |ight}.Ru|n a vert|
|00000770| 69 63 61 6c 20 6c 6f 77 | 2d 70 61 73 2e 2e 2e 0a |ical low|-pas....|
|00000780| 2e 2e 2e 69 73 70 6c 61 | 79 65 64 20 6f 6e 20 61 |...ispla|yed on a|
|00000790| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 20 74 68 | video d|evice th|
|000007a0| 61 74 20 75 73 65 73 0a | 69 6e 74 65 72 6c 61 63 |at uses.|interlac|
|000007b0| 69 6e 67 2c 20 68 65 6e | 63 65 20 74 68 65 20 6e |ing, hen|ce the n|
|000007c0| 61 6d 65 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |ame..\en|d{funcde|
|000007d0| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|000007e0| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|000007f0| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 31 37 65 |E="heigh|t: 2.17e|
|00000800| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00000810| 6e 3a 20 31 37 36 2e 36 | 38 65 78 3b 20 22 20 53 |n: 176.6|8ex; " S|
|00000820| 52 43 3d 22 69 6d 67 35 | 2e 70 6e 67 22 0a 20 41 |RC="img5|.png". A|
|00000830| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|00000840| 65 73 63 7d 7b 67 72 65 | 79 32 6d 6f 6e 6f 7d 7b |esc}{gre|y2mono}{|
|00000850| 69 6d 61 67 65 5c 2c 20 | 77 69 64 74 68 5c 2c 20 |image\, |width\, |
|00000860| 68 65 69 67 68 74 5c 2c | 20 74 68 72 65 73 68 6f |height\,| thresho|
|00000870| 6c 64 7d 0a 43 6f 6e 76 | 65 72 74 20 61 20 38 2d |ld}.Conv|ert a 8-|
|00000880| 62 69 74 20 2e 2e 2e 0a | 2e 2e 2e 64 20 61 6e 64 |bit ....|...d and|
|00000890| 0a 69 73 20 70 72 6f 62 | 61 62 6c 79 20 6f 6e 6c |.is prob|ably onl|
|000008a0| 79 20 75 73 65 66 75 6c | 20 61 73 20 61 6e 20 61 |y useful| as an a|
|000008b0| 72 67 75 6d 65 6e 74 20 | 74 6f 20 5c 63 6f 64 65 |rgument |to \code|
|000008c0| 7b 6d 6f 6e 6f 32 67 72 | 65 79 7d 2e 0a 5c 65 6e |{mono2gr|ey}..\en|
|000008d0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|000008e0| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|000008f0| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00000900| 74 3a 20 32 2e 31 37 65 | 78 3b 20 76 65 72 74 69 |t: 2.17e|x; verti|
|00000910| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 35 |cal-alig|n: 176.5|
|00000920| 35 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 36 |5ex; " S|RC="img6|
|00000930| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000940| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 64 69 74 |in{funcd|esc}{dit|
|00000950| 68 65 72 32 6d 6f 6e 6f | 7d 7b 69 6d 61 67 65 5c |her2mono|}{image\|
|00000960| 2c 20 77 69 64 74 68 5c | 2c 20 68 65 69 67 68 74 |, width\|, height|
|00000970| 7d 0a 43 6f 6e 76 65 72 | 74 20 61 6e 20 38 2d 62 |}.Conver|t an 8-b|
|00000980| 69 74 20 67 72 65 79 73 | 63 61 6c 65 2e 2e 2e 0a |it greys|cale....|
|00000990| 2e 2e 2e 62 69 74 20 6d | 6f 6e 6f 63 68 72 6f 6d |...bit m|onochrom|
|000009a0| 65 20 69 6d 61 67 65 20 | 75 73 69 6e 67 20 61 0a |e image |using a.|
|000009b0| 28 73 69 6d 70 6c 65 2d | 6d 69 6e 64 65 64 29 20 |(simple-|minded) |
|000009c0| 64 69 74 68 65 72 69 6e | 67 20 61 6c 67 6f 72 69 |ditherin|g algori|
|000009d0| 74 68 6d 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |thm..\en|d{funcde|
|000009e0| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|000009f0| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00000a00| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 33 38 65 |E="heigh|t: 2.38e|
|00000a10| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00000a20| 6e 3a 20 31 37 36 2e 34 | 30 65 78 3b 20 22 20 53 |n: 176.4|0ex; " S|
|00000a30| 52 43 3d 22 69 6d 67 37 | 2e 70 6e 67 22 0a 20 41 |RC="img7|.png". A|
|00000a40| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|00000a50| 65 73 63 7d 7b 6d 6f 6e | 6f 32 67 72 65 79 7d 7b |esc}{mon|o2grey}{|
|00000a60| 69 6d 61 67 65 5c 2c 20 | 77 69 64 74 68 5c 2c 20 |image\, |width\, |
|00000a70| 68 65 69 67 68 74 5c 2c | 20 70 30 5c 2c 20 70 31 |height\,| p0\, p1|
|00000a80| 7d 0a 43 6f 6e 76 65 72 | 74 20 61 20 31 2d 62 69 |}.Conver|t a 1-bi|
|00000a90| 74 20 6d 6f 2e 2e 2e 0a | 2e 2e 2e 6f 20 67 72 65 |t mo....|...o gre|
|00000aa0| 79 73 63 61 6c 65 20 70 | 61 73 73 20 74 68 65 0a |yscale p|ass the.|
|00000ab0| 76 61 6c 75 65 73 20 5c | 63 6f 64 65 7b 30 7d 20 |values \|code{0} |
|00000ac0| 61 6e 64 20 5c 63 6f 64 | 65 7b 32 35 35 7d 20 72 |and \cod|e{255} r|
|00000ad0| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 0a 5c 65 6e |espectiv|ely..\en|
|00000ae0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00000af0| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|00000b00| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00000b10| 74 3a 20 32 2e 31 37 65 | 78 3b 20 76 65 72 74 69 |t: 2.17e|x; verti|
|00000b20| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 36 |cal-alig|n: 176.6|
|00000b30| 38 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 38 |8ex; " S|RC="img8|
|00000b40| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000b50| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 67 72 65 |in{funcd|esc}{gre|
|00000b60| 79 32 67 72 65 79 34 7d | 7b 69 6d 61 67 65 5c 2c |y2grey4}|{image\,|
|00000b70| 20 77 69 64 74 68 5c 2c | 20 68 65 69 67 68 74 7d | width\,| height}|
|00000b80| 0a 43 6f 6e 76 65 72 74 | 20 61 6e 20 38 2d 62 69 |.Convert| an 8-bi|
|00000b90| 74 20 67 72 65 79 73 63 | 61 6c 65 20 69 6d 61 67 |t greysc|ale imag|
|00000ba0| 65 20 74 6f 20 61 20 34 | 2d 62 69 74 20 67 72 65 |e to a 4|-bit gre|
|00000bb0| 79 73 63 61 6c 65 20 69 | 6d 61 67 65 20 77 69 74 |yscale i|mage wit|
|00000bc0| 68 6f 75 74 0a 64 69 74 | 68 65 72 69 6e 67 2e 0a |hout.dit|hering..|
|00000bd0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|00000be0| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00000bf0| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000c00| 69 67 68 74 3a 20 32 2e | 31 37 65 78 3b 20 76 65 |ight: 2.|17ex; ve|
|00000c10| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00000c20| 36 2e 36 38 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.68ex; |" SRC="i|
|00000c30| 6d 67 39 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg9.png"|. ALT="\|
|00000c40| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000c50| 67 72 65 79 32 67 72 65 | 79 32 7d 7b 69 6d 61 67 |grey2gre|y2}{imag|
|00000c60| 65 5c 2c 20 77 69 64 74 | 68 5c 2c 20 68 65 69 67 |e\, widt|h\, heig|
|00000c70| 68 74 7d 0a 43 6f 6e 76 | 65 72 74 20 61 6e 20 38 |ht}.Conv|ert an 8|
|00000c80| 2d 62 69 74 20 67 72 65 | 79 73 63 61 6c 65 20 69 |-bit gre|yscale i|
|00000c90| 6d 61 67 65 20 74 6f 20 | 61 20 32 2d 62 69 74 20 |mage to |a 2-bit |
|00000ca0| 67 72 65 79 73 63 61 6c | 65 20 69 6d 61 67 65 20 |greyscal|e image |
|00000cb0| 77 69 74 68 6f 75 74 0a | 64 69 74 68 65 72 69 6e |without.|ditherin|
|00000cc0| 67 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |g..\end{|funcdesc|
|00000cd0| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 3c 42 |}">.<BR>|..<P>.<B|
|00000ce0| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|00000cf0| 22 68 65 69 67 68 74 3a | 20 32 2e 31 37 65 78 3b |"height:| 2.17ex;|
|00000d00| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000d10| 20 31 37 36 2e 36 38 65 | 78 3b 20 22 20 53 52 43 | 176.68e|x; " SRC|
|00000d20| 3d 22 69 6d 67 31 30 2e | 70 6e 67 22 0a 20 41 4c |="img10.|png". AL|
|00000d30| 54 3d 22 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |T="\begi|n{funcde|
|00000d40| 73 63 7d 7b 64 69 74 68 | 65 72 32 67 72 65 79 32 |sc}{dith|er2grey2|
|00000d50| 7d 7b 69 6d 61 67 65 5c | 2c 20 77 69 64 74 68 5c |}{image\|, width\|
|00000d60| 2c 20 68 65 69 67 68 74 | 7d 0a 43 6f 6e 76 65 72 |, height|}.Conver|
|00000d70| 74 20 61 6e 20 38 2d 62 | 69 74 20 67 72 65 79 73 |t an 8-b|it greys|
|00000d80| 63 61 6c 2e 2e 2e 0a 2e | 2e 2e 65 7b 64 69 74 68 |cal.....|..e{dith|
|00000d90| 65 72 32 6d 6f 6e 6f 7d | 2c 20 74 68 65 20 64 69 |er2mono}|, the di|
|00000da0| 74 68 65 72 69 6e 67 20 | 61 6c 67 6f 72 69 74 68 |thering |algorith|
|00000db0| 6d 20 69 73 0a 63 75 72 | 72 65 6e 74 6c 79 20 76 |m is.cur|rently v|
|00000dc0| 65 72 79 20 73 69 6d 70 | 6c 65 2e 0a 5c 65 6e 64 |ery simp|le..\end|
|00000dd0| 7b 66 75 6e 63 64 65 73 | 63 7d 22 3e 0a 3c 42 52 |{funcdes|c}">.<BR|
|00000de0| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |>..<P>.<|BR>.<IMG|
|00000df0| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|00000e00| 3a 20 32 2e 31 37 65 78 | 3b 20 76 65 72 74 69 63 |: 2.17ex|; vertic|
|00000e10| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 36 38 |al-align|: 176.68|
|00000e20| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 31 31 |ex; " SR|C="img11|
|00000e30| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000e40| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 67 72 65 |in{funcd|esc}{gre|
|00000e50| 79 34 32 67 72 65 79 7d | 7b 69 6d 61 67 65 5c 2c |y42grey}|{image\,|
|00000e60| 20 77 69 64 74 68 5c 2c | 20 68 65 69 67 68 74 7d | width\,| height}|
|00000e70| 0a 43 6f 6e 76 65 72 74 | 20 61 20 34 2d 62 69 74 |.Convert| a 4-bit|
|00000e80| 20 67 72 65 79 73 63 61 | 6c 65 20 69 6d 61 67 65 | greysca|le image|
|00000e90| 20 74 6f 20 61 6e 20 38 | 2d 62 69 74 20 67 72 65 | to an 8|-bit gre|
|00000ea0| 79 73 63 61 6c 65 20 69 | 6d 61 67 65 2e 0a 5c 65 |yscale i|mage..\e|
|00000eb0| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 22 3e 0a 3c |nd{funcd|esc}">.<|
|00000ec0| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00000ed0| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000ee0| 68 74 3a 20 32 2e 31 37 | 65 78 3b 20 76 65 72 74 |ht: 2.17|ex; vert|
|00000ef0| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000f00| 36 38 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |68ex; " |SRC="img|
|00000f10| 31 32 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |12.png".| ALT="\b|
|00000f20| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 67 |egin{fun|cdesc}{g|
|00000f30| 72 65 79 32 32 67 72 65 | 79 7d 7b 69 6d 61 67 65 |rey22gre|y}{image|
|00000f40| 5c 2c 20 77 69 64 74 68 | 5c 2c 20 68 65 69 67 68 |\, width|\, heigh|
|00000f50| 74 7d 0a 43 6f 6e 76 65 | 72 74 20 61 20 32 2d 62 |t}.Conve|rt a 2-b|
|00000f60| 69 74 20 67 72 65 79 73 | 63 61 6c 65 20 69 6d 61 |it greys|cale ima|
|00000f70| 67 65 20 74 6f 20 61 6e | 20 38 2d 62 69 74 20 67 |ge to an| 8-bit g|
|00000f80| 72 65 79 73 63 61 6c 65 | 20 69 6d 61 67 65 2e 0a |reyscale| image..|
|00000f90| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|00000fa0| 0a 3c 42 52 3e 0a 3c 48 | 52 3e 0a 0a 3c 2f 42 4f |.<BR>.<H|R>..</BO|
|00000fb0| 44 59 3e 0a 3c 2f 48 54 | 4d 4c 3e 0a |DY>.</HT|ML>. |
+--------+-------------------------+-------------------------+--------+--------+