open static fun generateCenteredRect(output: MultiRect!, imageWidth: Double, imageHeight: Double, bounds: MultiRect!): MultiRect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Double: the Bitmap's width
imageHeight
- Double: the Bitmap's height
bounds
- MultiRect!: the parent View's bounds
Return
MultiRect!: the rectangular position of the Bitmap
open static fun generateCenteredRect(imageWidth: Double, imageHeight: Double, bounds: MultiRect!): MultiRect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Double: the Bitmap's width
imageHeight
- Double: the Bitmap's height
bounds
- MultiRect!: the parent View's bounds
Return
MultiRect!: the rectangular position of the Bitmap
open static fun generateCenteredRect(imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double): MultiRect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Double: the Bitmap's width
imageHeight
- Double: the Bitmap's height
viewWidth
- Double: the parent View's width
viewHeight
- Double: the parent View's height
Return
MultiRect!: the rectangular position of the Bitmap
open static fun generateCenteredRect(output: MultiRect!, imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double): MultiRect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Double: the Bitmap's width
imageHeight
- Double: the Bitmap's height
viewWidth
- Double: the parent View's width
viewHeight
- Double: the parent View's height
Return
MultiRect!: the rectangular position of the Bitmap
open static fun generateCenteredRect(output: MultiRect!, imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double, fitInside: Boolean): MultiRect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Double: the Bitmap's width
imageHeight
- Double: the Bitmap's height
viewWidth
- Double: the parent View's width
viewHeight
- Double: the parent View's height
Return
MultiRect!: the rectangular position of the Bitmap