Change argument order of imageFit to provide easier use

This commit is contained in:
Edwin Jakobs
2020-02-24 15:53:51 +01:00
parent 51a4e9fd88
commit 1eaf8607db

View File

@@ -17,9 +17,9 @@ fun Drawer.imageFit(
y: Double = 0.0, y: Double = 0.0,
width: Double = img.width.toDouble(), width: Double = img.width.toDouble(),
height: Double = img.height.toDouble(), height: Double = img.height.toDouble(),
fitMethod: FitMethod = FitMethod.Cover,
horizontalPosition: Double = 0.0, horizontalPosition: Double = 0.0,
verticalPosition: Double = 0.0 verticalPosition: Double = 0.0,
fitMethod: FitMethod = FitMethod.Cover
) { ) {
val sourceWidth = img.width.toDouble() val sourceWidth = img.width.toDouble()
val sourceHeight = img.height.toDouble() val sourceHeight = img.height.toDouble()