The guidelines page does refer to the Subversion page to download the
source. The text mentions being one with the Build, but is missing the
link within. The link is on the side bar - http://poi.apache.org/howtobuild.html
Also, you can use Graphics2D transforms in Java to increase the
resolution of the bit map produced.
Use
AffineTransform at = new AffineTransform();
at.scale(scale, scale);
graphics.setTransform(at);
Play with the width and height to get the sizing correct.
Let us know if this helps.
Regards,
Dave
On Dec 8, 2009, at 9:14 AM, Yegor Kozlov wrote:
HSLF's shape renderer supports only about 20 shapes out of 255
defined in the specification. At the moment only relatively simple
shapes are rendered OK (rectangle, triangle, diamond, etc.). More
complex shapes such as arrows are not supported and rendered as a
filled bounding box.
However, it's possible to extend this part of HSLF and define new
shapes. The outlines are defined in
org.apache.poi.hslf.model.AutoShapes:
http://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/AutoShapes.java
You will need to edit this class and register new shapes outlines.
Each shape is described in terms of java.awt.GeneralPath - follow
the pattern in the existing code.
AutoShapes are described in the Appendix D of
OfficeDrawing97-2007BinaryFormatSpecification.pdf, the download link
can be found on http://poi.apache.org/guidelines.html.
Yegor
Hi All!
Following http://poi.apache.org/slideshow/how-to-shapes.html#Render
i can
export a slide into a image, but i obtain a poor quality imagem. More
complex shapes like arrows don't render, in your place appear a
black filled
square. What can i do to export with a better quality?
Att.,
André Luis Moreira Silva
E-Mail: [email protected]
Blog: http://www.geekmind.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]