Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 108

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gdk::Image Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGdk.html">Gdk</a>::<a class="el" href="classGdk_1_1Image.html">Image</a>
  </div>
</div>
<div class="contents">
<h1>Gdk::Image Class Reference</h1><!-- doxytag: class="Gdk::Image" --><!-- doxytag: inherits="Glib::Object" -->
<p>This represents an area for drawing graphics. <a href="#_details">More...</a></p>

<p>Inherits <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gdk::Image:</div>
<div class="dynsection">
<div class="center"><img src="classGdk_1_1Image__coll__graph.png" border="0" usemap="#Gdk_1_1Image_coll__map" alt="Collaboration graph"/></div>
<map name="Gdk_1_1Image_coll__map" id="Gdk_1_1Image_coll__map">
<area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,160,111,189"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGdk_1_1Image-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#af1f96475bc69290b6b7f206f2ba8e00b">~Image</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkImage*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#acac146964abc34b4fd7c2ee191269182">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#acac146964abc34b4fd7c2ee191269182"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdkImage*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a2bb07609aa3b2b448e0b2a6e9d34ae44">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a2bb07609aa3b2b448e0b2a6e9d34ae44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkImage*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#aea2ae6cb159201f8c9837175f92bd7f6">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#aea2ae6cb159201f8c9837175f92bd7f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a261f5bd8c40909f763e0c7e210931e60">put_pixel</a> (int x, int y, guint32 pixel)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a9c10675434c409bae56d9a5775a65725">get_pixel</a> (int x, int y) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a042880ccdd652d3e772f2fb7688a3d1b">set_colormap</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&amp; colormap)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the colormap for the image to the given colormap. <a href="#a042880ccdd652d3e772f2fb7688a3d1b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a9414d62a370fb3ed6376be93ac4147bf">get_colormap</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the colormap for a given image, if it exists. <a href="#a9414d62a370fb3ed6376be93ac4147bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a8522ac3430a2744fa10d84752c1e2ce2">get_colormap</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the colormap for a given image, if it exists. <a href="#a8522ac3430a2744fa10d84752c1e2ce2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#ad74c9586b466048789d2b07b5260461f">get_image_type</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a68a4f293d42503fde1bd135b5a5ae645">get_visual</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a6e03217036aa9df27c41823885c6bf09">get_visual</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#ga23c7243f15304c7a86cf6a20118a7c85">ByteOrder</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#ad8c07e89516185e19f0e9798f77eeafb">get_byte_order</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#ae56de9426d2db292837ce4392e47be0c">get_width</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a9223b3a765267abd4bece279b2cfecec">get_height</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a156b6e5f8eaadc1755a247b23891315c">get_bpp</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a9a624bcb50829f0b920f1bbb2e76bfba">get_bpl</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a2e2b9d527ca2ef1d1e76c4ec2910a54f">get_bits_per_pixel</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a92ae3cbb3f5893081f0429f206b09b36">get_mem</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const void*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#ac5261bdd56bfd4a7fcc8c9ffab900f6e">get_mem</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#acdffefa7e40c8e5a33c61a638aea9126">get_windowing_data</a> () const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Image.html">Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#ae83bda5a56ec3804c9ae5d13ccc8a16a">create</a> (<a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a> type, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, int width, int height)</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a15edc58b8f519a1549df52f3049e1203">Image</a> (<a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a> type, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Instantiate a new <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a>. <a href="#a15edc58b8f519a1549df52f3049e1203"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Image.html">Gdk::Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Image.html#a4e12de6a4aed338274da14ee02498b47">wrap</a> (GdkImage* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a4e12de6a4aed338274da14ee02498b47"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This represents an area for drawing graphics. </p>
<p>It has now been superceded to a large extent by the much more flexible <a class="el" href="classGdk_1_1Drawable.html" title="Drawing Primitives.">Gdk::Drawable</a> RGB functions. To create an image from part of a <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen.">Gdk::Window</a> use <a class="el" href="classGdk_1_1Drawable.html#a5c758b488229b68f15b431d90e87d2b8" title="A Gdk::Image stores client-side image data (pixels).">Gdk::Drawable::get_image()</a>.</p>
<p>The image can be manipulated with <a class="el" href="classGdk_1_1Image.html#a9c10675434c409bae56d9a5775a65725">get_pixel()</a> and <a class="el" href="classGdk_1_1Image.html#a261f5bd8c40909f763e0c7e210931e60">put_pixel()</a>, or alternatively by changing the actual pixel data, though manipulating the pixel data requires complicated code to cope with the different formats that may be used. To draw a <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a> in a <a class="el" href="classGdk_1_1Window.html" title="A Gdk::Window is a rectangular region on the screen.">Gdk::Window</a> or <a class="el" href="classGdk_1_1Pixmap.html" title="Pixmaps are offscreen drawables.">Gdk::Pixmap</a> use <a class="el" href="classGdk_1_1Drawable.html#a8ea32afd4ea08f6abea8de6fc268ccb6" title="Draws a Gdk::Image onto a drawable.">Gdk::Drawable::draw_image()</a>. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af1f96475bc69290b6b7f206f2ba8e00b"></a><!-- doxytag: member="Gdk::Image::~Image" ref="af1f96475bc69290b6b7f206f2ba8e00b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::Image::~Image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a15edc58b8f519a1549df52f3049e1203"></a><!-- doxytag: member="Gdk::Image::Image" ref="a15edc58b8f519a1549df52f3049e1203" args="(ImageType type, const Glib::RefPtr&lt; Visual &gt; &amp;visual, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::Image::Image </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a>&#160;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>visual</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Instantiate a new <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&#160;</td><td>The type of the <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a>. <a class="el" href="group__gdkmmEnums.html#gga072162d4af37da0fbea4c8dd67509058a905a905f442b521ae112cf5afb6d94f1">Gdk::IMAGE_FASTEST</a> is probably the best choice, since it will try to create a <a class="el" href="group__gdkmmEnums.html#gga072162d4af37da0fbea4c8dd67509058a89c15840288aa9bea4e5cfa0e95e4431">Gdk::IMAGE_SHARED</a> image first and if that fails it will then use <a class="el" href="group__gdkmmEnums.html#gga072162d4af37da0fbea4c8dd67509058abb2e3236e28b40746a3511582b9782f3">Gdk::IMAGE_NORMAL</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>visual</em>&#160;</td><td>The <a class="el" href="classGdk_1_1Visual.html" title="A Gdk::Visual describes a particular video hardware display format.">Gdk::Visual</a> to use for the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>The width of the image in pixels. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>The height of the image in pixels. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae83bda5a56ec3804c9ae5d13ccc8a16a"></a><!-- doxytag: member="Gdk::Image::create" ref="ae83bda5a56ec3804c9ae5d13ccc8a16a" args="(ImageType type, const Glib::RefPtr&lt; Visual &gt; &amp;visual, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Image.html">Image</a>&gt; Gdk::Image::create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a>&#160;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>visual</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2e2b9d527ca2ef1d1e76c4ec2910a54f"></a><!-- doxytag: member="Gdk::Image::get_bits_per_pixel" ref="a2e2b9d527ca2ef1d1e76c4ec2910a54f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint16 Gdk::Image::get_bits_per_pixel </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9a624bcb50829f0b920f1bbb2e76bfba"></a><!-- doxytag: member="Gdk::Image::get_bpl" ref="a9a624bcb50829f0b920f1bbb2e76bfba" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint16 Gdk::Image::get_bpl </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a156b6e5f8eaadc1755a247b23891315c"></a><!-- doxytag: member="Gdk::Image::get_bpp" ref="a156b6e5f8eaadc1755a247b23891315c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint16 Gdk::Image::get_bpp </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad8c07e89516185e19f0e9798f77eeafb"></a><!-- doxytag: member="Gdk::Image::get_byte_order" ref="ad8c07e89516185e19f0e9798f77eeafb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#ga23c7243f15304c7a86cf6a20118a7c85">ByteOrder</a> Gdk::Image::get_byte_order </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8522ac3430a2744fa10d84752c1e2ce2"></a><!-- doxytag: member="Gdk::Image::get_colormap" ref="a8522ac3430a2744fa10d84752c1e2ce2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::Image::get_colormap </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the colormap for a given image, if it exists. </p>
<p>An image will have a colormap if the drawable from which it was created has a colormap, or if a colormap was set explicitely with <a class="el" href="classGdk_1_1Image.html#a042880ccdd652d3e772f2fb7688a3d1b" title="Sets the colormap for the image to the given colormap.">set_colormap()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> for the image. </dd></dl>

</div>
</div>
<a class="anchor" id="a9414d62a370fb3ed6376be93ac4147bf"></a><!-- doxytag: member="Gdk::Image::get_colormap" ref="a9414d62a370fb3ed6376be93ac4147bf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::Image::get_colormap </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the colormap for a given image, if it exists. </p>
<p>An image will have a colormap if the drawable from which it was created has a colormap, or if a colormap was set explicitely with <a class="el" href="classGdk_1_1Image.html#a042880ccdd652d3e772f2fb7688a3d1b" title="Sets the colormap for the image to the given colormap.">set_colormap()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> for the image. </dd></dl>

</div>
</div>
<a class="anchor" id="a9223b3a765267abd4bece279b2cfecec"></a><!-- doxytag: member="Gdk::Image::get_height" ref="a9223b3a765267abd4bece279b2cfecec" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gdk::Image::get_height </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad74c9586b466048789d2b07b5260461f"></a><!-- doxytag: member="Gdk::Image::get_image_type" ref="ad74c9586b466048789d2b07b5260461f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gdkmmEnums.html#ga072162d4af37da0fbea4c8dd67509058">ImageType</a> Gdk::Image::get_image_type </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac5261bdd56bfd4a7fcc8c9ffab900f6e"></a><!-- doxytag: member="Gdk::Image::get_mem" ref="ac5261bdd56bfd4a7fcc8c9ffab900f6e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const void* Gdk::Image::get_mem </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a92ae3cbb3f5893081f0429f206b09b36"></a><!-- doxytag: member="Gdk::Image::get_mem" ref="a92ae3cbb3f5893081f0429f206b09b36" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* Gdk::Image::get_mem </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9c10675434c409bae56d9a5775a65725"></a><!-- doxytag: member="Gdk::Image::get_pixel" ref="a9c10675434c409bae56d9a5775a65725" args="(int x, int y) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint32 Gdk::Image::get_pixel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6e03217036aa9df27c41823885c6bf09"></a><!-- doxytag: member="Gdk::Image::get_visual" ref="a6e03217036aa9df27c41823885c6bf09" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Visual.html">Visual</a>&gt; Gdk::Image::get_visual </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a68a4f293d42503fde1bd135b5a5ae645"></a><!-- doxytag: member="Gdk::Image::get_visual" ref="a68a4f293d42503fde1bd135b5a5ae645" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Visual.html">Visual</a>&gt; Gdk::Image::get_visual </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae56de9426d2db292837ce4392e47be0c"></a><!-- doxytag: member="Gdk::Image::get_width" ref="ae56de9426d2db292837ce4392e47be0c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gdk::Image::get_width </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acdffefa7e40c8e5a33c61a638aea9126"></a><!-- doxytag: member="Gdk::Image::get_windowing_data" ref="acdffefa7e40c8e5a33c61a638aea9126" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* Gdk::Image::get_windowing_data </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2bb07609aa3b2b448e0b2a6e9d34ae44"></a><!-- doxytag: member="Gdk::Image::gobj" ref="a2bb07609aa3b2b448e0b2a6e9d34ae44" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdkImage* Gdk::Image::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="acac146964abc34b4fd7c2ee191269182"></a><!-- doxytag: member="Gdk::Image::gobj" ref="acac146964abc34b4fd7c2ee191269182" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkImage* Gdk::Image::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="aea2ae6cb159201f8c9837175f92bd7f6"></a><!-- doxytag: member="Gdk::Image::gobj_copy" ref="aea2ae6cb159201f8c9837175f92bd7f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkImage* Gdk::Image::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a261f5bd8c40909f763e0c7e210931e60"></a><!-- doxytag: member="Gdk::Image::put_pixel" ref="a261f5bd8c40909f763e0c7e210931e60" args="(int x, int y, guint32 pixel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Image::put_pixel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint32&#160;</td>
          <td class="paramname"> <em>pixel</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a042880ccdd652d3e772f2fb7688a3d1b"></a><!-- doxytag: member="Gdk::Image::set_colormap" ref="a042880ccdd652d3e772f2fb7688a3d1b" args="(const Glib::RefPtr&lt; Colormap &gt; &amp;colormap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::Image::set_colormap </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>colormap</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the colormap for the image to the given colormap. </p>
<p>Normally there's no need to use this function, images are created with the correct colormap if you get the image from a drawable. If you create the image from scratch, use the colormap of the drawable you intend to render the image to. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>colormap</em>&#160;</td><td>A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Gdk::Colormap</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a4e12de6a4aed338274da14ee02498b47"></a><!-- doxytag: member="Gdk::Image::wrap" ref="a4e12de6a4aed338274da14ee02498b47" args="(GdkImage *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Image.html">Gdk::Image</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdkImage *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gdkmm/image.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:44 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>