| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/python3-xlib/html/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Colormap (The Python X Library)</title>
<meta name="description" content="Colormap (The Python X Library)">
<meta name="keywords" content="Colormap (The Python X Library)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="X-Objects.html" rel="up" title="X Objects">
<link href="Cursor.html" rel="next" title="Cursor">
<link href="Resource.html" rel="prev" title="Resource">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="Colormap"></span><div class="header">
<p>
Next: <a href="Cursor.html" accesskey="n" rel="next">Cursor</a>, Previous: <a href="Resource.html" accesskey="p" rel="prev">Resource</a>, Up: <a href="X-Objects.html" accesskey="u" rel="up">X Objects</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="Colormap-1"></span><h3 class="section">6.3 Colormap</h3>
<p>See <a href="Resource.html">Resource</a>, for additional methods on <code>Colormap</code> objects.
</p>
<dl>
<dt id="index-free-on-Colormap">Method on Colormap: <strong>free</strong> <em>( onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-copy_005fcolormap_005fand_005ffree-on-Colormap">Method on Colormap: <strong>copy_colormap_and_free</strong> <em>( scr_cmap )</em></dt>
<dd><p>Returns Colormap.
</p></dd></dl>
<dl>
<dt id="index-install_005fcolormap-on-Colormap">Method on Colormap: <strong>install_colormap</strong> <em>( onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-uninstall_005fcolormap-on-Colormap">Method on Colormap: <strong>uninstall_colormap</strong> <em>( onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-alloc_005fcolor-on-Colormap">Method on Colormap: <strong>alloc_color</strong> <em>( red, green, blue )</em></dt>
</dl>
<dl>
<dt id="index-alloc_005fnamed_005fcolor-on-Colormap">Method on Colormap: <strong>alloc_named_color</strong> <em>( name )</em></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 id="index-alloc_005fcolor_005fcells-on-Colormap">Method on Colormap: <strong>alloc_color_cells</strong> <em>( contiguous, colors, planes )</em></dt>
<dd><p>Returns List(’pixels’, Card32Obj),
List(’masks’, Card32Obj),
</p></dd></dl>
<dl>
<dt id="index-alloc_005fcolor_005fplanes-on-Colormap">Method on Colormap: <strong>alloc_color_planes</strong> <em>( contiguous, colors, red, green, blue )</em></dt>
<dd><p>Returns Card32(’red_mask’),
Card32(’green_mask’),
Card32(’blue_mask’),
List(’pixels’, Card32Obj),
</p></dd></dl>
<dl>
<dt id="index-free_005fcolors-on-Colormap">Method on Colormap: <strong>free_colors</strong> <em>( pixels, plane_mask, onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-store_005fcolors-on-Colormap">Method on Colormap: <strong>store_colors</strong> <em>( items, onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-store_005fnamed_005fcolor-on-Colormap">Method on Colormap: <strong>store_named_color</strong> <em>( name, pixel, flags, onerror = None )</em></dt>
</dl>
<dl>
<dt id="index-query_005fcolors-on-Colormap">Method on Colormap: <strong>query_colors</strong> <em>( pixels )</em></dt>
<dd><p>Returns List(’colors’, structs.RGB),
</p></dd></dl>
<dl>
<dt id="index-lookup_005fcolor-on-Colormap">Method on Colormap: <strong>lookup_color</strong> <em>( name )</em></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>
</body>
</html>