From 21fb81914f40016a2860c71948a4a2759c9e153c Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 16 Aug 2017 11:21:55 +0100 Subject: [PATCH] JAL-2556 Resolved group update on colouring and escape --- src/jalview/gui/SeqCanvas.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index abd6325..9d11976 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -385,7 +385,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI .getClipBounds().height))) { Graphics2D g2 = (Graphics2D) lcimg.getGraphics(); - g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC)); // overlay selection group on lcimg if (selectImage != null) @@ -399,12 +398,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI fastPaint = false; return; } - - /* lcimg = setupImage(lcimg); - if (lcimg == null) - { - return; - }*/ if (av.antiAlias) { @@ -426,6 +419,12 @@ public class SeqCanvas extends JComponent implements ViewportListenerI ranges.getStartSeq(), ranges.getEndSeq(), 0); } + lcimg = new BufferedImage(img.getWidth(), img.getHeight(), + img.getType()); + g2d = lcimg.createGraphics(); + g2d.drawImage(img, 0, 0, null); + g2d.dispose(); + Graphics2D g2 = (Graphics2D) lcimg.getGraphics(); // overlay selection group on lcimg -- 1.7.10.2