/usr/share/doc/python-xlib/html/python-xlib_17.html is in python-xlib 0.14+20091101-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on September 15, 2015 by texi2html 1.82
texi2html was written by:
Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>The Python X Library: 6.3 Colormap</title>
<meta name="description" content="The Python X Library: 6.3 Colormap">
<meta name="keywords" content="The Python X Library: 6.3 Colormap">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Colormap"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="python-xlib_16.html#Resource" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="python-xlib_18.html#Cursor" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="python-xlib_14.html#X-Objects" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="python-xlib_14.html#X-Objects" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[ >> ]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="python-xlib.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="python-xlib_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="python-xlib_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<hr size="1">
<a name="Colormap-1"></a>
<h2 class="section">6.3 Colormap</h2>
<p>See section <a href="python-xlib_16.html#Resource">Resource</a>, for additional methods on <code>Colormap</code> objects.
</p>
<dl>
<dt><a name="index-free-on-Colormap"></a><u>Method on Colormap:</u> <b>free</b><i> ( onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-copy_005fcolormap_005fand_005ffree-on-Colormap"></a><u>Method on Colormap:</u> <b>copy_colormap_and_free</b><i> ( scr_cmap )</i></dt>
<dd><p>Returns Colormap.
</p></dd></dl>
<dl>
<dt><a name="index-install_005fcolormap-on-Colormap"></a><u>Method on Colormap:</u> <b>install_colormap</b><i> ( onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-uninstall_005fcolormap-on-Colormap"></a><u>Method on Colormap:</u> <b>uninstall_colormap</b><i> ( onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-alloc_005fcolor-on-Colormap"></a><u>Method on Colormap:</u> <b>alloc_color</b><i> ( red, green, blue )</i></dt>
</dl>
<dl>
<dt><a name="index-alloc_005fnamed_005fcolor-on-Colormap"></a><u>Method on Colormap:</u> <b>alloc_named_color</b><i> ( name )</i></dt>
<dd><p>Returns None or Card32(’pixel’),
Card16(’exact_red’),
Card16(’exact_green’),
Card16(’exact_blue’),
Card16(’screen_red’),
Card16(’screen_green’),
Card16(’screen_blue’),
</p></dd></dl>
<dl>
<dt><a name="index-alloc_005fcolor_005fcells-on-Colormap"></a><u>Method on Colormap:</u> <b>alloc_color_cells</b><i> ( contiguous, colors, planes )</i></dt>
<dd><p>Returns List(’pixels’, Card32Obj),
List(’masks’, Card32Obj),
</p></dd></dl>
<dl>
<dt><a name="index-alloc_005fcolor_005fplanes-on-Colormap"></a><u>Method on Colormap:</u> <b>alloc_color_planes</b><i> ( contiguous, colors, red, green, blue )</i></dt>
<dd><p>Returns Card32(’red_mask’),
Card32(’green_mask’),
Card32(’blue_mask’),
List(’pixels’, Card32Obj),
</p></dd></dl>
<dl>
<dt><a name="index-free_005fcolors-on-Colormap"></a><u>Method on Colormap:</u> <b>free_colors</b><i> ( pixels, plane_mask, onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-store_005fcolors-on-Colormap"></a><u>Method on Colormap:</u> <b>store_colors</b><i> ( items, onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-store_005fnamed_005fcolor-on-Colormap"></a><u>Method on Colormap:</u> <b>store_named_color</b><i> ( name, pixel, flags, onerror = None )</i></dt>
</dl>
<dl>
<dt><a name="index-query_005fcolors-on-Colormap"></a><u>Method on Colormap:</u> <b>query_colors</b><i> ( pixels )</i></dt>
<dd><p>Returns List(’colors’, structs.RGB),
</p></dd></dl>
<dl>
<dt><a name="index-lookup_005fcolor-on-Colormap"></a><u>Method on Colormap:</u> <b>lookup_color</b><i> ( name )</i></dt>
<dd><p>Returns Card16(’exact_red’),
Card16(’exact_green’),
Card16(’exact_blue’),
Card16(’screen_red’),
Card16(’screen_green’),
Card16(’screen_blue’),
</p></dd></dl>
<hr size="1">
<p>
<font size="-1">
This document was generated by <em>Build Daemon user</em> on <em>September 15, 2015</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
</font>
<br>
</p>
</body>
</html>
|