<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <linklocation="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<paramname="allocate">if true, the newly created colormap will be a private colormap, and all colors in it will be allocated for the applications use.</param>
<returns>The new <seecref="T:Gdk.Colormap"/></returns>
<summary>Allocates a single color from a colormap.</summary>
<paramname="color">The color to allocate. On return the pixel field will be filled in if allocation succeeds.</param>
<paramname="writeable">If true, the color is allocated writeable (their values can later be changed using <seecref="M:Gdk.Color.Change"/>). Writeable colors cannot be shared between applications.</param>
<paramname="best_match">If true, GDK will attempt to do matching against existing colors if the color cannot be allocated as requested.</param>
<returns>True if the allocation succeeded.</returns>
<summary>Locates the RGB color in the colormap corresponding to the given hardware pixel.</summary>
<paramname="pixel">Pixel value in hardware display format.</param>
<paramname="result">
<seecref="T:Gdk.Color"/> with red, green, blue fields initialized.</param>
<remarks>Pixel must be a valid pixel in the colormap; it's a programmer error to call his function with a pixel which is not in the colormap. Hardware pixels are normally obtained from <seecref="M:Gdk.Colormap.AllocColors"/>, or from a <seecref="T:Gdk.Image"/>. (A <seecref="T:Gdk.Image"/> contains image data in hardware format, a <seecref="T:Gdk.Pixbuf"/> contains image data in a canonical 24-bit RGB format.)</remarks>
<summary>Allocates colors from a colormap.</summary>
<paramname="colors">The color values to allocate. On return, the pixel values for allocated colors will be filled in.</param>
<paramname="ncolors">The number of colors in colors.</param>
<paramname="writeable">If true, the colors are allocated writeable (their values can later be changed using <seecref="M:Gdk.Color.Change"/>). Writeable colors cannot be shared between applications.</param>
<paramname="best_match">If true, GDK will attempt to do matching against existing colors if the colors cannot be allocated as requested.</param>
<paramname="success">An array of length ncolors. On return, this indicates whether the corresponding color in colors was sucessfully allocated or not.</param>
<returns>The number of colors that were not successfully allocated.</returns>
<remarks>This is a constructor used by derivative types of <seecref="T:Gdk.Colormap"/> that would have their own GLib.GType assigned to it. This is not typically used by C# code.</remarks>