>This function is <strong>memory-efficient</strong>, as it operates directly on the surface buffer without creating additional copies of the image data.</p></li>
<li><p>If the surface has an <strong>alpha channel</strong>, it is <strong>ignored</strong> during processing, meaning any transparency information will remain unchanged.</p></li>
</ul>
<p><strong>Performance Considerations</strong></p>
<ul class="simple">
<li><p>The function is optimized using Cython to minimize overhead and improve performan