setZoom

void setZoom(float scale)

Set zoom to the specified scale. Image will be centered by default.

Parameters

scale
void setZoom(float scale, float focusX, float focusY)

Set zoom to the specified scale. Image will be centered around the point (focusX, focusY). These floats range from 0 to 1 and denote the focus point as a fraction from the left and top of the view. For example, the top left corner of the image would be (0, 0). And the bottom right corner would be (1, 1).

Parameters

scale
focusX
focusY
void setZoom(float scale, float focusX, float focusY, ImageView.ScaleType scaleType)

Set zoom to the specified scale. Image will be centered around the point (focusX, focusY). These floats range from 0 to 1 and denote the focus point as a fraction from the left and top of the view. For example, the top left corner of the image would be (0, 0). And the bottom right corner would be (1, 1).

Parameters

scale
focusX
focusY
scaleType
void setZoom(TouchImageView img)

Set zoom parameters equal to another TouchImageView. Including scale, position, and ScaleType.

Parameters

img