private static void setPropertyFromSourceBitmap(Bitmap source, Bitmap destination) {
    // The new bitmap was created from a known bitmap source so assume that
    // they use the same density
    destination.setDensity(source.getDensity());
    if (Build.VERSION.SDK_INT >= 12) {
      destination.setHasAlpha(source.hasAlpha());
    }

    if (Build.VERSION.SDK_INT >= 19) {
      destination.setPremultiplied(source.isPremultiplied());
    }
  }
Set some property of the source bitmap to the destination bitmap

@param source the source bitmap
@param destination the destination bitmap
imagepipeline-base/src/main/java/com/facebook/imagepipeline/bitmaps/PlatformBitmapFactory.java