setScaleAndCenter

public final void setScaleAndCenter(float scale, PointF sCenter)

Externally change the scale and translation of the source image. This may be used with getCenter() and getScale() to restore the scale and zoom after a screen rotate.

Parameters

scale

New scale to set.

sCenter

New source image coordinate to center on the screen, subject to boundaries.