Search in sources :

Example 1 with ImageEditor

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);
}
Also used : ImageZoomModel(org.intellij.images.editor.ImageZoomModel) ImageEditor(org.intellij.images.editor.ImageEditor) BufferedImage(java.awt.image.BufferedImage)

Aggregations

BufferedImage (java.awt.image.BufferedImage)1 ImageEditor (org.intellij.images.editor.ImageEditor)1 ImageZoomModel (org.intellij.images.editor.ImageZoomModel)1