<3d_array> = np.array(<Image>) <spanclass="hljs-comment"># Creates NumPy array from color image.</span>
<Image> = Image.fromarray(<array>) <spanclass="hljs-comment"># Creates image from NumPy array of floats.</span>
</code></pre>
<div><h3id="modes-1">Modes</h3><ul>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'1'</span></code> - 1-bit pixels, black and white, stored with one pixel per byte.</strong></li>