protected Graphics2D getGraphics( final boolean transparent, final Color bgColor, final RenderedImage preparedImage, final Map<RenderingHints.Key, Object> hintsMap) { return ImageUtils.prepareTransparency(transparent, bgColor, preparedImage, hintsMap); }
final Map<RenderingHints.Key, Object> hintsMap = new HashMap<RenderingHints.Key, Object>(); Graphics2D g2 = ImageUtils.prepareTransparency(transparent, backgroundColor, newImage, hintsMap); g2.setFont(labelFont); if (useAA) {
final Map<RenderingHints.Key, Object> hintsMap = new HashMap<RenderingHints.Key, Object>(); Graphics2D g2 = ImageUtils.prepareTransparency(transparent, backgroundColor, newImage, hintsMap); g2.setFont(labelFont); if (useAA) {
final Map<Key, Object> hintsMap = new HashMap<Key, Object>(); final Graphics2D graphics = ImageUtils.prepareTransparency(transparent, backgroundColor, image, hintsMap);
totalWidth, totalHeight, (IndexColorModel) null, transparent); final Graphics2D finalGraphics = ImageUtils.prepareTransparency(transparent, backgroundColor, finalImage, hintsMap);
private synchronized BufferedImage createResponse() { if (image == null) { if (cMapLegendCreator != null) // creating a legend image = cMapLegendCreator.getLegend(); else { image = ImageUtils.createImage(width, height, (IndexColorModel) null, transparent); final Graphics2D graphics = ImageUtils.prepareTransparency( transparent, bgColor, image, new HashMap<RenderingHints.Key, Object>()); if (defaultLegend == null) { drawRasterIcon(graphics); } else { graphics.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics.drawImage(defaultLegend, 0, 0, width, height, null); } graphics.dispose(); } } return image; }
ImageUtils.prepareTransparency( transparent, backgroundColor, finalLegend, hintsMap); hintsMap.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
strokeWidth, strokeHeight, (IndexColorModel) null, false); Graphics2D finalGraphics = ImageUtils.prepareTransparency( false, LegendUtils.getBackgroundColor(legend.request),
final Map<Key, Object> hintsMap = new HashMap<Key, Object>(); Graphics2D graphics = ImageUtils.prepareTransparency(transparent, backgroundColor, image, hintsMap);
public BufferedImage renderComposite(final DistributedRenderOptions renderOptions) { final BufferedImage image = ImageUtils.createImage( renderOptions.getMapWidth(), renderOptions.getMapHeight(), renderOptions.getPalette(), renderOptions.isTransparent() || renderOptions.isMetatile()); final Graphics2D graphics = ImageUtils.prepareTransparency( renderOptions.isTransparent(), renderOptions.getBgColor(), image, null); for (final CompositeGroupResult compositeGroup : orderedComposites) { compositeGroup.render(graphics, renderOptions.getMapWidth(), renderOptions.getMapHeight()); } final BufferedImage img = parentImage.getImage(); graphics.drawImage(img, 0, 0, null); graphics.dispose(); return image; }
final Map<RenderingHints.Key, Object> hintsMap = new HashMap<RenderingHints.Key, Object>(); Graphics2D finalGraphics = ImageUtils.prepareTransparency( options.isTransparent(), options.getBackgroundColor(),
final Map<RenderingHints.Key, Object> hintsMap = new HashMap<RenderingHints.Key, Object>(); Graphics2D finalGraphics = ImageUtils.prepareTransparency( options.isTransparent(), options.getBackgroundColor(),
new HashMap<RenderingHints.Key, Object>(); final Graphics2D graphics = ImageUtils.prepareTransparency( transparent, LegendUtils.getBackgroundColor(request),
new HashMap<RenderingHints.Key, Object>(); final Graphics2D graphics = ImageUtils.prepareTransparency( transparent, LegendUtils.getBackgroundColor(request),