library / com.otaliastudios.zoom / ZoomEngine / setContentSize

setContentSize

fun setContentSize(rect: RectF): Unit
Deprecated: Deprecated in favor of not using RectF class

Notifies the helper of the content size (be it a child View, a Bitmap, or whatever else). This is needed for the helper to start working.

Parameters

rect - the content rect

@JvmOverloads fun setContentSize(width: Float, height: Float, applyTransformation: Boolean = false): Unit

Notifies the helper of the content size (be it a child View, a Bitmap, or whatever else). This is needed for the helper to start working.

Parameters

width - the content width

height - the content height

applyTransformation - whether to apply the transformation defined by setTransformation