From 1eaf8607dbc26cf9d8a0f616932651c93e3d4a7d Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Mon, 24 Feb 2020 15:53:51 +0100 Subject: [PATCH] Change argument order of imageFit to provide easier use --- orx-image-fit/src/main/kotlin/ImageFit.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orx-image-fit/src/main/kotlin/ImageFit.kt b/orx-image-fit/src/main/kotlin/ImageFit.kt index d6048265..519398ed 100644 --- a/orx-image-fit/src/main/kotlin/ImageFit.kt +++ b/orx-image-fit/src/main/kotlin/ImageFit.kt @@ -17,9 +17,9 @@ fun Drawer.imageFit( y: Double = 0.0, width: Double = img.width.toDouble(), height: Double = img.height.toDouble(), - fitMethod: FitMethod = FitMethod.Cover, horizontalPosition: Double = 0.0, - verticalPosition: Double = 0.0 + verticalPosition: Double = 0.0, + fitMethod: FitMethod = FitMethod.Cover ) { val sourceWidth = img.width.toDouble() val sourceHeight = img.height.toDouble()