public void doExport(File file, Component parent, int width, int height,
String imageSource)
{
+ 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, float bitmapscale,
+ int bitmapwidth, int bitmapheight)
+ {
final long messageId = System.currentTimeMillis();
setStatus(
MessageManager.formatMessage(
* for this as EPS_RENDERING / SVG_RENDERING
* Always set to Text for JalviewJS as Lineart (glyph fonts) not available
*/
- String renderStyle = Cache.getDefault(
- imageType.getName() + "_RENDERING",
- LineartOptions.PROMPT_EACH_TIME);
+ String renderStyle = renderer == null
+ ? Cache.getDefault(imageType.getName() + "_RENDERING",
+ LineartOptions.PROMPT_EACH_TIME)
+ : renderer;
if (Platform.isJS())
{
renderStyle = "Text";
final File chosenFile = file;
Callable<Void> okAction = () -> {
exportImage(chosenFile, !textSelected.get(), width, height,
- messageId);
+ messageId, bitmapscale, bitmapwidth, bitmapheight);
return null;
};
LineartOptions epsOption = new LineartOptions(TYPE.EPS.getName(),
* 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);
}
}
* @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
// "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(