# animateScaleAndCenter

public SubsamplingScaleImageView.AnimationBuilder animateScaleAndCenter(float scale, PointF sCenter)

Creates a scale animation builder, that when started will animate a zoom in or out. If this would move the image beyond the panning limits, the image is automatically panned during the animation.

#### Return

AnimationBuilder instance. Call start to start the anim.

#### Parameters

scale

Target scale.

sCenter

Target source center.