Home
last modified time | relevance | path

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

/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/
DImagePanel.java98 float imgRatio = (float)image.getWidth() / (float)image.getHeight(); in paintComponent() local
100 if (imgRatio > panelRatio) { in paintComponent()
102 float th = (float)getWidth() / imgRatio; in paintComponent()
105 float tw = (float)getHeight() * imgRatio; in paintComponent()
112 float imgRatio = (float)width / (float)height; in paintComponent() local
114 if (imgRatio > panelRatio) { in paintComponent()
116 int th = (int) (getWidth() / imgRatio); in paintComponent()
121 int tw = (int) (getHeight() * imgRatio); in paintComponent()