l">tgx::Image&lt;tgx::RGB24&gt;</a> im2(buf2, 50, 50); <span class="comment">// image that encapsulates the pixel buffer buf2</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// copy the content of im1/buf1 into im2/buf2, resize and perform color conversion automatically !   </span></div>
<div class="line">im2.<a class="code hl_function" href="classtgx_1_1_image.html#aa6957f8982ec8fe73bf5e31b2ffe74ae">copyFrom</a>(im1);</div>
<div class="line"> </div>
<div class="line"><span cl