rong>:
If <cite>surface_</cite> is not a valid <cite>pygame.Surface</cite> object.</p></li>
<li><p><strong>ValueError</strong>:
If the surface format is incompatible (e.g., non-24-bit or non-32-bit format) or cannot be processed.</p></li>
<li><p><strong>ValueError</strong>:
If <cite>npass</cite> is not a positive integer (<cite>npass &lt;= 0</cite>).</p></li>
</ul>
<p><strong>Implementation Details</strong></p>
<ul class="simple">
<li><p>The function accesses the pixel buffer of the surface directl