setDimensions

Sets the width in meters and keeps the image's aspect ratio.


fun setDimensions(width: Float, height: Float?)(source)

Sets the size in meters, or keeps the image's aspect ratio for a null height. An overlay placed by bounds is placed at their center instead.