use of org.intellij.images.editor.ImageEditor in project android by JetBrains.
the class ScreenshotViewer method updateEditorImage.
private void updateEditorImage() {
BufferedImage image = myDisplayedImageRef.get();
ImageEditor imageEditor = myImageFileEditor.getImageEditor();
ImageZoomModel zoomModel = imageEditor.getZoomModel();
double zoom = zoomModel.getZoomFactor();
imageEditor.getDocument().setValue(image);
pack();
zoomModel.setZoomFactor(zoom);
}
Aggregations