public CloseableReference<Bitmap> createScaledBitmap(
      Bitmap source, int destinationWidth, int destinationHeight, boolean filter) {
    return createScaledBitmap(source, destinationWidth, destinationHeight, filter, null);
  }
Creates a bitmap from the specified source scaled to have the height and width as specified. It
is initialized with the same density as the original bitmap.

@param source The bitmap we are subsetting
@param destinationWidth The number of pixels in each row of the final bitmap
@param destinationHeight The number of rows in the final bitmap
@return a reference to the bitmap
@throws IllegalArgumentException if the destinationWidth is <= 0, or destinationHeight is <= 0
@throws TooManyBitmapsException if the pool is full
@throws java.lang.OutOfMemoryError if the Bitmap cannot be allocated
imagepipeline-base/src/main/java/com/facebook/imagepipeline/bitmaps/PlatformBitmapFactory.java