private static BufferedImage createHighlighterImage(Component c, Rectangle rect, float borderAlpha, Set<Side> openSides, SubstanceColorScheme currScheme, SubstanceColorScheme currBorderScheme, SubstanceHighlightPainter highlightPainter, SubstanceBorderPainter highlightBorderPainter) { BufferedImage result = SubstanceCoreUtilities.getBlankImage(rect.width, rect.height); Graphics2D resGraphics = result.createGraphics(); highlightPainter.paintHighlight(resGraphics, c, rect.width, rect.height, currScheme); paintHighlightBorder(resGraphics, c, rect.width, rect.height, borderAlpha, openSides, highlightBorderPainter, currBorderScheme); resGraphics.dispose(); return result; }
private static BufferedImage createHighlighterImage(Component c, Rectangle rect, float borderAlpha, Set<Side> openSides, SubstanceColorScheme currScheme, SubstanceColorScheme currBorderScheme, SubstanceHighlightPainter highlightPainter, SubstanceBorderPainter highlightBorderPainter) { BufferedImage result = SubstanceCoreUtilities.getBlankImage(rect.width, rect.height); Graphics2D resGraphics = result.createGraphics(); highlightPainter.paintHighlight(resGraphics, c, rect.width, rect.height, currScheme); paintHighlightBorder(resGraphics, c, rect.width, rect.height, borderAlpha, openSides, highlightBorderPainter, currBorderScheme); resGraphics.dispose(); return result; }