|
|
|
@ -9,6 +9,7 @@ import com.fr.base.Style;
|
|
|
|
|
import com.fr.design.gui.iscrollbar.UIScrollBar; |
|
|
|
|
import com.fr.general.ImageWithSuffix; |
|
|
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.CoreGraphHelper; |
|
|
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
@ -92,9 +93,14 @@ public class ImagePreviewPane extends JComponent implements Scrollable, ImagePre
|
|
|
|
|
isLoading = false; |
|
|
|
|
CoreGraphHelper.waitForImage(image); |
|
|
|
|
|
|
|
|
|
imageWidth = image.getWidth(null); |
|
|
|
|
imageHeight = image.getHeight(null); |
|
|
|
|
|
|
|
|
|
if (image.getFineImage() != null && image.getImage() != null) { |
|
|
|
|
try { |
|
|
|
|
imageWidth = image.getWidth(null); |
|
|
|
|
imageHeight = image.getHeight(null); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.setToolTipText("Image Size: " + imageWidth + "x" + imageHeight + "px"); |
|
|
|
|
} |
|
|
|
|
fireChangeListener(); |
|
|
|
|