Searched refs:imgRatio (Results 1 – 1 of 1) sorted by relevance
98 float imgRatio = (float)image.getWidth() / (float)image.getHeight(); in paintComponent() local100 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() local114 if (imgRatio > panelRatio) { in paintComponent()116 int th = (int) (getWidth() / imgRatio); in paintComponent()121 int tw = (int) (getHeight() * imgRatio); in paintComponent()