From 3db783d68296cc21aa66b7e1c7900b4f8918371b Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 23 Jul 2008 12:23:59 +0000 Subject: [PATCH] Removed commented code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@679080 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/render/afp/AFPGraphics2DAdapter.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java index c8a20c5fe..320e0e6be 100644 --- a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java +++ b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java @@ -76,32 +76,5 @@ public class AFPGraphics2DAdapter extends AbstractGraphics2DAdapter { Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, imw, imh); painter.paint(graphics, area); } - -// RendererContext.RendererContextWrapper wrappedContext -// = new RendererContext.RendererContextWrapper(context); -//AFPRenderer renderer = (AFPRenderer)context.getRenderer(); -//Boolean grayObj = (Boolean)context.getProperty(AFPRendererContextConstants.AFP_GRAYSCALE); -//boolean gray = (grayObj != null ? grayObj.booleanValue() : false); -// -//FOUserAgent userAgent = context.getUserAgent(); -// -////Paint to a BufferedImage -//int resolution = (int)Math.round(userAgent.getTargetResolution()); -//BufferedImage bi -// = paintToBufferedImage(painter, wrappedContext, resolution, gray, false); -// -//ImageManager manager = userAgent.getFactory().getImageManager(); -//ImageSessionContext sessionContext = userAgent.getImageSessionContext(); -//AFPState state = (AFPState)context.getProperty(AFPRendererContextConstants.AFP_STATE); -//String uri = state.getImageUri(); -//try { -// ImageInfo info = manager.getImageInfo(uri, sessionContext); -// java.util.Map foreignAttributes = null; -// renderer.drawBufferedImage(info, bi, resolution, x, y, width, height, foreignAttributes); -//} catch (ImageException e) { -// log.error(e); -//} - -// painter.paint(g2d, area) } } -- 2.39.5