if (multipliar == 1) {
return;
}
// reset any priori image transformations
imgPanel.resetImageManipulation();
// set the new size of the ImagePanel
imgPanel.getImagePane().setPreferredSize(new Dimension(viewableArea.width, (int) (img.getHeight() * multipliar)));
imgPanel.getImagePane().revalidate();