ass="comment">// we can directly change the color type of im1 in place from RGB32 to RGB565</span></div>
<div class="line"><a class="code hl_class" href="classtgx_1_1_image.html">tgx::Image&lt;tgx::RGB565&gt;</a> im3 = im1.<a class="code hl_function" href="classtgx_1_1_image.html#a9613250401a0fe1d6283e81070e99ee8">convert</a>&lt;<a class="code hl_struct" href="structtgx_1_1_r_g_b565.html">tgx::RGB565</a>&gt;();</div>
<div class="line"> </div>
<div class="line"><span class="comment">// ok, now im3 has the sa