>
<li><p><strong>height</strong> (int):
Height of the original image in pixels.</p></li>
<li><p><strong>format_32</strong> (bool):
True for 32-bit buffers (BGRA, BGRA).
False for 24-bit buffers (BGR, BGR).</p></li>
<li><p><strong>threshold</strong> (int, default = 70):
Gradient magnitude threshold for edge detection.
Higher values suppress weaker edges and reduce noise.</p></li>
</ul>
<p><strong>Returns:</strong></p>
<ul class="simple">
<li><p>pygame.Surface â€“ A new image with Canny edge 