Change argument order of imageFit to provide easier use
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user