X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FImageExporter.java;h=785d206b8a5c038361ac745422448491f551bb8f;hb=ec24991b1786e17158a43f713c8ae9c4f8647393;hp=657601e6f352751b898375253aee5031e1b9b65a;hpb=79456f40b33e73e2fb5420a3287ae80854281ef6;p=jalview.git diff --git a/src/jalview/gui/ImageExporter.java b/src/jalview/gui/ImageExporter.java index 657601e..785d206 100644 --- a/src/jalview/gui/ImageExporter.java +++ b/src/jalview/gui/ImageExporter.java @@ -105,11 +105,12 @@ public class ImageExporter public void doExport(File file, Component parent, int width, int height, String imageSource) { - doExport(file, parent, width, height, imageSource, null); + doExport(file, parent, width, height, imageSource, null, 0.0f, 0, 0); } public void doExport(File file, Component parent, int width, int height, - String imageSource, String renderer) + String imageSource, String renderer, float bitmapscale, + int bitmapwidth, int bitmapheight) { final long messageId = System.currentTimeMillis(); setStatus( @@ -165,7 +166,7 @@ public class ImageExporter final File chosenFile = file; Callable okAction = () -> { exportImage(chosenFile, !textSelected.get(), width, height, - messageId); + messageId, bitmapscale, bitmapwidth, bitmapheight); return null; }; LineartOptions epsOption = new LineartOptions(TYPE.EPS.getName(), @@ -191,7 +192,8 @@ public class ImageExporter * character rendering not required, or preference already set * - just do the export */ - exportImage(file, !textSelected.get(), width, height, messageId); + exportImage(file, !textSelected.get(), width, height, messageId, + bitmapscale, bitmapwidth, bitmapheight); } } @@ -207,7 +209,8 @@ public class ImageExporter * @param messageId */ protected void exportImage(File chosenFile, boolean asLineart, int width, - int height, long messageId) + int height, long messageId, float bitmapscale, int bitmapwidth, + int bitmapheight) { String type = imageType.getName(); try @@ -217,7 +220,7 @@ public class ImageExporter // "status.exporting_alignment_as_x_file", type), // messageId); ImageMaker im = new ImageMaker(imageType, width, height, chosenFile, - title, asLineart); + title, asLineart, bitmapscale, bitmapwidth, bitmapheight); imageWriter.exportImage(im.getGraphics()); im.writeImage(); setStatus(