aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-04-22 19:12:33 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-04-22 19:12:33 +0000
commit7173abf5d251da7a1269ae42a3f256b2c4a5a515 (patch)
tree7c646ad68d6efc15deea2ec457c01106fc8beb0c
parent997485baf1f77903b50d6ae57173cbb54141b01e (diff)
downloadxmlgraphics-fop-7173abf5d251da7a1269ae42a3f256b2c4a5a515.tar.gz
xmlgraphics-fop-7173abf5d251da7a1269ae42a3f256b2c4a5a515.zip
Expand discussion of graphics resolutions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196322 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/documentation/content/xdocs/graphics.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/documentation/content/xdocs/graphics.xml b/src/documentation/content/xdocs/graphics.xml
index ad1203018..c50964349 100644
--- a/src/documentation/content/xdocs/graphics.xml
+++ b/src/documentation/content/xdocs/graphics.xml
@@ -278,11 +278,13 @@ into a raster graphic are not drawn properly in PDF. The image is opaque.
</section>
<section id="resolution">
<title>Graphics Resolution</title>
- <p>This is an important issue when creating output for printing.
-The dpi is used to convert measurements into points. For example 1in
-= 2.54cm = 72 points. It is also used when determining the size of
-images and the rendering of certain graphics in the output. Currently
-FOP uses a value of 72dpi.</p>
+ <p>Some bitmapped image file formats store a dots-per-inch (dpi) or other resolution value. Since PDF and most output formats do not have a concept of resolution, but only of absolute image units (i.e. pixels) FOP ignores the resolution values as well. Instead, FOP uses the dimensions of the image as specified in the fo:external-graphic element to render the image:</p>
+ <ul>
+ <li>If no dimensions are given, FOP uses a default value of 72 dpi to compute the graphic's dimensions. For example, suppose a graphic 300 pixels wide and 400 pixels high. FOP will render the graphic at 4.167 inches wide, 5.555 inches high, with an apparent resolution of 72 dpi.</li>
+ <li>If only one dimension is given, FOP by default uses the same aspect ratio to compute the other dimension (to avoid the appearance of stretching). For example, suppose a graphic 300 pixels wide and 400 pixels high, for which content-width = ".5in". FOP will compute the content-height = .667 inches, and will render the graphic at that size, with an apparent resolution of 600 dpi.</li>
+ <li>If both dimensions are given, FOP simply renders the image in that space. For example, suppose a graphic 300 pixels wide and 400 pixels high, for which content-width = "3in" and content-height = "4in". FOP will render the graphic at that size, with an apparent resolution of 100 dpi.</li>
+ </ul>
+ <note>The explanation above describes only the basic default behavior. There are other attributes of the fo:external-graphic element that can affect the behavior described above.</note>
</section>
</body>
</document>