&nbsp;getDefaultEncodeParam&#8203;(java.awt.image.RenderedImage&nbsp;im)</pre>
<div class="block">Returns an instance of <code>PNGEncodeParam.Palette</code>,
 <code>PNGEncodeParam.Gray</code>, or
 <code>PNGEncodeParam.RGB</code> appropriate for encoding
 the given image.

 <p> If the image has an <code>IndexColorModel</code>, an
 instance of <code>PNGEncodeParam.Palette</code> is returned.
 Otherwise, if the image has 1 or 2 bands an instance of
 <code>PNGEncodeParam.Gray</code> is returned.  In all other
 