Home
last modified time | relevance | path

Searched refs:relativeScale (Results 1 – 1 of 1) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java284 float relativeScale = targetScale / currentScale; in scale() local
286 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()
287 (1 - relativeScale); in scale()
288 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()
289 (1 - relativeScale); in scale()
295 float relativeScale = targetScale / currentScale; in scale() local
296 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()
297 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()