<HTML> <HEAD> <!-- Created by texi2html 1.56k from ../src/python-xlib.texi on 22 October 2013 --> <TITLE>The Python X Library - Colormap</TITLE> </HEAD> <BODY> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_17.html">previous</A>, <A HREF="python-xlib_19.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. <P><HR><P> <H2><A NAME="SEC17" HREF="python-xlib_toc.html#TOC17">Colormap</A></H2> <P> See section <A HREF="python-xlib_17.html#SEC16">Resource</A>, for additional methods on <CODE>Colormap</CODE> objects. <P> <DL> <DT><U>Method:</U> Colormap <B>free</B> <I>( onerror = None )</I> <DD><A NAME="IDX235"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>copy_colormap_and_free</B> <I>( scr_cmap )</I> <DD><A NAME="IDX236"></A> Returns Colormap. </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>install_colormap</B> <I>( onerror = None )</I> <DD><A NAME="IDX237"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>uninstall_colormap</B> <I>( onerror = None )</I> <DD><A NAME="IDX238"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>alloc_color</B> <I>( red, green, blue )</I> <DD><A NAME="IDX239"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>alloc_named_color</B> <I>( name )</I> <DD><A NAME="IDX240"></A> Returns None or Card32('pixel'), Card16('exact_red'), Card16('exact_green'), Card16('exact_blue'), Card16('screen_red'), Card16('screen_green'), Card16('screen_blue'), </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>alloc_color_cells</B> <I>( contiguous, colors, planes )</I> <DD><A NAME="IDX241"></A> Returns List('pixels', Card32Obj), List('masks', Card32Obj), </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>alloc_color_planes</B> <I>( contiguous, colors, red, green, blue )</I> <DD><A NAME="IDX242"></A> Returns Card32('red_mask'), Card32('green_mask'), Card32('blue_mask'), List('pixels', Card32Obj), </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>free_colors</B> <I>( pixels, plane_mask, onerror = None )</I> <DD><A NAME="IDX243"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>store_colors</B> <I>( items, onerror = None )</I> <DD><A NAME="IDX244"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>store_named_color</B> <I>( name, pixel, flags, onerror = None )</I> <DD><A NAME="IDX245"></A> </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>query_colors</B> <I>( pixels )</I> <DD><A NAME="IDX246"></A> Returns List('colors', structs.RGB), </DL> <P> <DL> <DT><U>Method:</U> Colormap <B>lookup_color</B> <I>( name )</I> <DD><A NAME="IDX247"></A> Returns Card16('exact_red'), Card16('exact_green'), Card16('exact_blue'), Card16('screen_red'), Card16('screen_green'), Card16('screen_blue'), </DL> <P><HR><P> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_17.html">previous</A>, <A HREF="python-xlib_19.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. </BODY> </HTML>