diff options
author | Yegor Kozlov <yegor@apache.org> | 2008-11-16 13:24:42 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2008-11-16 13:24:42 +0000 |
commit | 2a12f7566c812cd05291c31e1708178120f76a6e (patch) | |
tree | f05bf6c2534a3beb85fa17ddcbd13177d4e15047 /src/ooxml/interfaces-jdk15/org/apache/poi | |
parent | 98a378dc5f4f7d48c0b4cb85db2e16b2626daf59 (diff) | |
download | poi-2a12f7566c812cd05291c31e1708178120f76a6e.tar.gz poi-2a12f7566c812cd05291c31e1708178120f76a6e.zip |
applied fix suggested in bug#46197: missing cast to float resulted in incorect calculation of picture size.Also added Picture.resize(scale)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@718023 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/interfaces-jdk15/org/apache/poi')
-rwxr-xr-x | src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Picture.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Picture.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Picture.java index 3e2fab6ac4..eb5bc8828e 100755 --- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Picture.java +++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Picture.java @@ -27,4 +27,13 @@ public interface Picture { * Reset the image to the original size.
*/
void resize();
+
+ /**
+ * Reset the image to the original size.
+ *
+ * @param scale the amount by which image dimensions are multiplied relative to the original size.
+ * <code>resize(1.0)</code> sets the original size, <code>resize(0.5)</code> resize to 50% of the original,
+ * <code>resize(2.0)</code> resizes to 200% of the original.
+ */
+ void resize(double scale);
}
|