?? gdk-bitmaps-and-pixmaps.html
字號:
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> height);</pre><p>Creates a new bitmap from data in XBM format.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td><td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>, used to determine default valuesfor the new pixmap. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, in which case the rootwindow is used.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td><td>a pointer to the XBM data.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td><td>the width of the new pixmap in pixels.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td><td>the height of the new pixmap in pixels.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3121456"></a><h3><a name="gdk-pixmap-create-from-data"></a>gdk_pixmap_create_from_data ()</h3><a class="indexterm" name="id3121470"></a><pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a>* gdk_pixmap_create_from_data (<a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable">GdkDrawable</a> *drawable, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *data, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> width, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> height, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> depth, const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *fg, const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *bg);</pre><p>Create a two-color pixmap from data in XBM data.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td><td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>, used to determine default valuesfor the new pixmap. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, if the depth is given.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td><td>a pointer to the data.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td><td>the width of the new pixmap in pixels.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td><td>the height of the new pixmap in pixels.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td><td>the depth (number of bits per pixel) of the new pixmap.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>fg</code></em> :</span></p></td><td>the foreground color.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>bg</code></em> :</span></p></td><td>the background color.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3121687"></a><h3><a name="gdk-pixmap-create-from-xpm"></a>gdk_pixmap_create_from_xpm ()</h3><a class="indexterm" name="id3121701"></a><pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a>* gdk_pixmap_create_from_xpm (<a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable">GdkDrawable</a> *drawable, <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> **mask, const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *transparent_color, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *filename);</pre><p>Create a pixmap from a XPM file.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td><td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>, used to determine default valuesfor the new pixmap.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td><td>a pointer to a place to store a bitmap representingthe transparency mask of the XPM file. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>,in which case transparency will be ignored.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>transparent_color</code></em> :</span></p></td><td>the color to be used for the pixelsthat are transparent in the input file. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>,in which case a default color will be used.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td><td>the filename of a file containing XPM data.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3121865"></a><h3><a name="gdk-pixmap-colormap-create-from-xpm"></a>gdk_pixmap_colormap_create_from_xpm ()</h3><a class="indexterm" name="id3121879"></a><pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a>* gdk_pixmap_colormap_create_from_xpm (<a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable">GdkDrawable</a> *drawable, <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap">GdkColormap</a> *colormap, <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> **mask, const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *transparent_color, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *filename);</pre><p>Create a pixmap from a XPM file using a particular colormap.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td><td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>, used to determine default valuesfor the new pixmap. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>colormap</code></em> is given.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>colormap</code></em> :</span></p></td><td>the <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap"><span class="type">GdkColormap</span></a> that the new pixmap will be use. If omitted, the colormap for <em class="parameter"><code>window</code></em> will be used.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td><td>a pointer to a place to store a bitmap representingthe transparency mask of the XPM file. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>,in which case transparency will be ignored.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>transparent_color</code></em> :</span></p></td><td>the color to be used for the pixelsthat are transparent in the input file. Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>,in which case a default color will be used.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td><td>the filename of a file containing XPM data.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td></tr></tbody>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -