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.java282 float relativeScale = targetScale / currentScale; in scale() local
284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()
285 (1 - relativeScale); in scale()
286 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()
287 (1 - relativeScale); in scale()
293 float relativeScale = targetScale / currentScale; in scale() local
294 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()
295 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()