newSizeThe desired size for the scaled image.scaleFactorScale factor to apply to the scaled image. If the value specified is zero, the device's scale factor is used.
The scaled image.
This can be used from a background thread.