r to its memory location. <b>As a general rule, the TGX library never perform any dynamic memory allocation</b>.</p>
<p >Several images can reference the same memory buffer (or a part of it). Creating images/sub-images that share the same pixels buffer is useful to restrict drawing operations to a given rectangular region.</p>
<p >The position of a pixel inside an image is given in row major order:</p>
<p ><code>Pixel(i, j) = buffer[i + stride*j]</code></p>
<p >for 0 &le; <code>i</code> &lt; <code>lx</code>