From: kiramt Date: Wed, 16 Aug 2017 10:21:55 +0000 (+0100) Subject: JAL-2556 Resolved group update on colouring and escape X-Git-Tag: Release_2_10_3b1~140^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=21fb81914f40016a2860c71948a4a2759c9e153c;p=jalview.git JAL-2556 Resolved group update on colouring and escape --- 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