From 9ec34fc861ac7b8892c439454f68bc5c493f69dd Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 20 Jan 2005 20:42:53 +0000 Subject: Forgot this one when extending FopImage git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198297 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/render/ps/PSGraphics2D.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/java/org/apache/fop/render/ps/PSGraphics2D.java b/src/java/org/apache/fop/render/ps/PSGraphics2D.java index eea3c47cf..7959ce43f 100644 --- a/src/java/org/apache/fop/render/ps/PSGraphics2D.java +++ b/src/java/org/apache/fop/render/ps/PSGraphics2D.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -394,6 +394,26 @@ public class PSGraphics2D extends AbstractGraphics2D { return 0; } + /** @see org.apache.fop.image.FopImage#getIntrinsicWidth() */ + public int getIntrinsicWidth() { + return (int)(getWidth() * 72000 / getHorizontalResolution()); + } + + /** @see org.apache.fop.image.FopImage#getIntrinsicHeight() */ + public int getIntrinsicHeight() { + return (int)(getHeight() * 72000 / getVerticalResolution()); + } + + /** @see org.apache.fop.image.FopImage#getHorizontalResolution() */ + public double getHorizontalResolution() { + return 72; + } + + /** @see org.apache.fop.image.FopImage#getVerticalResolution() */ + public double getVerticalResolution() { + return 72; + } + } -- cgit v1.2.3