 a 1D array (such as when the image data is flattened).</p>
<p><strong>Parameters:</strong></p>
<ul class="simple">
<li><p><strong>bgr_array</strong> (<em>1D numpy.ndarray</em> or <em>memoryview slice</em>):
A 1D array or memoryview slice with shape <cite>(w,)</cite> containing pixel data (e.g., in <strong>BGR(A)</strong> or any other
pixel format). The array should be of type <strong>uint8</strong>.</p></li>
<li><p><strong>width</strong> (<em>int</em>):
The width (<cite>w</cite>) of the original ima