library / com.otaliastudios.zoom / ZoomSurfaceView / setContentSize

setContentSize

fun setContentSize(width: Float, height: Float): Unit

Sets the size of the content. If this is not called, the size will be assumed to be that of the ZoomSurfaceView itself. In this case, make sure to measure ZoomSurfaceView correctly or the texture will be distorted.