From 4b20ba483248df48d9501c48926dd437712ed682 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 31 Aug 2005 13:23:01 +0000 Subject: external-graphic property demonstration section. asf-logo-nt.png is the non-transparent version of asf-logo.png. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265037 13f79535-47bb-0310-9956-ffa450edef68 --- examples/fo/basic/images.fo | 60 ++++++++++++++++++++++++++++++----- examples/fo/graphics/asf-logo-nt.png | Bin 0 -> 12120 bytes 2 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 examples/fo/graphics/asf-logo-nt.png diff --git a/examples/fo/basic/images.fo b/examples/fo/basic/images.fo index 025fea465..5ad915385 100644 --- a/examples/fo/basic/images.fo +++ b/examples/fo/basic/images.fo @@ -79,14 +79,14 @@ A PNG image in FOP - + A TIFF image in FOP - + @@ -101,14 +101,58 @@ - - - + + + - -A. Appendix - + + A. The usage of fo:external-graphic + + The image used in these examples has the following properties: + + 169 x 51 px, 96 dpi, results in an intrinsic size of 44.715 x 13.494 mm + + + All the examples here will have a border="solid 0.1pt" to show the size of the viewport generated by the + external-graphic element and a background-color="yellow" to show what parts of the viewport are painted + upon by the image in the reference area. The image used is the non-transparent version of asf-logo.png: + file:../graphics/asf-logo.png + + + Properties: [none] + + + Properties: width="60mm" height="20mm" + + + Properties: inline-progression-dimension="60mm" block-progression-dimension="20mm" + + + Properties: width="30mm" height="20mm" + + + Properties: width="30mm" height="20mm" overflow="hidden" + + + Properties: width="60mm" height="20mm" text-align="center" display-align="center" + + + Properties: content-height="20mm" + + + Properties: content-width="60mm" content-height="40mm" + + + Properties: content-width="60mm" content-height="40mm" scaling="non-uniform" + + + Properties: width="60mm" height="20mm" content-width="scale-to-fit" + + + Properties: width="60mm" content-width="scale-to-fit" + + diff --git a/examples/fo/graphics/asf-logo-nt.png b/examples/fo/graphics/asf-logo-nt.png new file mode 100644 index 000000000..40ff54916 Binary files /dev/null and b/examples/fo/graphics/asf-logo-nt.png differ -- cgit v1.2.3