library / com.otaliastudios.zoom / ZoomEngine / zoom

zoom

open val zoom: Float

Overrides ZoomApi.zoom

Gets the current zoom value, which can be used as a reference when calling zoomTo or zoomBy.

This can be different than the actual scale you get in the matrix, because at startup we apply a base transformation, see setTransformation. All zoom calls, including min zoom and max zoom, refer to this axis, where zoom is set to 1 right after the initial transformation.

Return
the current zoom

See Also

realZoom