title: How can I specify the bitmap format (e.g. RGBA_8888) with BitmapFactory.decode*()?
body: <p>I'm making several calls to <code>BitmapFactory.decodeFile()</code> and <code>BitmapFactory.decodeResource()</code>, and I'd like to specify the format the bitmaps are decoded to, such as RGB_565 or RGBA_8888.</p>
  
  <p>Currently, the decoded bitmap format seems to depend on the incoming image. Alternatively, is there a way to convert an existing bitmap to a specific format?</p>
  
  <p>The reason this is important is that when I try to decode the image using <code>jnigraphics</code>, some images return an <code>AndroidBitmapFormat</code> of type <code>ANDROID_BITMAP_FORMAT_NONE</code>, which I assume is useless. Does anyone have more insight into why the format would be none of the known values? When this happens, the built-in image picker correctly displays images that are decoded this way, so I assume there has to be a way to deal with them.</p>
  
  <p>Thanks for your input!</p>