getSampleSizeRounding
abstract fun getSampleSizeRounding( sourceWidth: Int, sourceHeight: Int, requestedWidth: Int, requestedHeight: Int): DownsampleStrategy.SampleSizeRounding
Content copied to clipboard
Returns a non-null SampleSizeRounding to use to resolve rounding errors and conflicts between scaling for the width and the height of the image.
Parameters
sourceWidth
The width in pixels of the image to be downsampled.
sourceHeight
The height in pixels of the image to be downsampled.
requestedWidth
The width in pixels of the view/target the image will be displayed in.
requestedHeight
The height in pixels of the view/target the image will be displayed in.