# animateCenter

public SubsamplingScaleImageView.AnimationBuilder animateCenter(PointF sCenter)

Creates a panning animation builder, that when started will animate the image to place the given coordinates of the image in the center of the screen. If doing this would move the image beyond the edges of the screen, the image is instead animated to move the center point as near to the center of the screen as is allowed - it's guaranteed to be on screen.

#### Return

AnimationBuilder instance. Call start to start the anim.

#### Parameters

sCenter

Target center point