You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/01/20 21:42:53 UTC
cvs commit: xml-fop/src/java/org/apache/fop/render/ps PSGraphics2D.java
jeremias 2005/01/20 12:42:53
Modified: src/java/org/apache/fop/render/ps PSGraphics2D.java
Log:
Forgot this one when extending FopImage
Revision Changes Path
1.13 +21 -1 xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java
Index: PSGraphics2D.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- PSGraphics2D.java 10 Oct 2004 12:18:49 -0000 1.12
+++ PSGraphics2D.java 20 Jan 2005 20:42:53 -0000 1.13
@@ -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.
@@ -392,6 +392,26 @@
public int getRessourceBytesSize() {
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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org