title: Converting Bitmap in memory to Bitmap with Bitmap.Config.RGB_565
body: <p>I have a loaded Bitmap which I would like to convert to set the config to <code>Bitmap.Config.RGB_565</code>. Is there a simple way of converting a <code>Bitmap</code> to this configuration after the Bitmap is already loaded into memory? For example, below I have a bitmap being decoded from the application resources, however, how would I convert an already loaded <code>Bitmap</code> to <code>RGB_565</code>? I'm sure it's something simple, however, I'm fairly new to working with Bitmaps and after a few hours of looking online, unfortunately I couldn't find what I needed specifically.</p>
  
  <pre><code>BitmapFactory.Options options = new BitmapFactory.Options();
  options.inPreferredConfig=Bitmap.Config.RGB_565
  bitmap=BitmapFactory.decodeResource(getResources(), R.drawable.myphoto ,options);
  </code></pre>