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/08/31 15:23:10 UTC

svn commit: r265037 - in /xmlgraphics/fop/trunk/examples/fo: basic/images.fo graphics/asf-logo-nt.png

Author: jeremias
Date: Wed Aug 31 06:23:01 2005
New Revision: 265037

URL: http://svn.apache.org/viewcvs?rev=265037&view=rev
Log:
external-graphic property demonstration section.
asf-logo-nt.png is the non-transparent version of asf-logo.png.

Added:
    xmlgraphics/fop/trunk/examples/fo/graphics/asf-logo-nt.png   (with props)
Modified:
    xmlgraphics/fop/trunk/examples/fo/basic/images.fo

Modified: xmlgraphics/fop/trunk/examples/fo/basic/images.fo
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/examples/fo/basic/images.fo?rev=265037&r1=265036&r2=265037&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/examples/fo/basic/images.fo (original)
+++ xmlgraphics/fop/trunk/examples/fo/basic/images.fo Wed Aug 31 06:23:01 2005
@@ -79,14 +79,14 @@
   <!--fox:destination internal-destination="N2555"/-->
   <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A PNG image in FOP</fo:block>
   <fo:block>
-    <!--fo:external-graphic src="file:../graphics/asf-logo.png"/-->
+    <fo:external-graphic src="file:../graphics/asf-logo.png"/>
   </fo:block>
 </fo:block>
 <fo:block id="N2556">
   <!--fox:destination internal-destination="N2556"/-->
   <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A TIFF image in FOP</fo:block>
   <fo:block>
-    <!--fo:external-graphic src="../graphics/asf-logo.tif"/-->
+    <fo:external-graphic src="../graphics/asf-logo.tif"/>
   </fo:block>
 </fo:block>
 <fo:block id="N2559">
@@ -101,14 +101,58 @@
 <fo:page-sequence id="N2561" master-reference="psmOddEven">
 
 <fo:static-content flow-name="xsl-region-after">
-<fo:block text-align-last="center" font-size="10pt">
-  <fo:page-number/>
-</fo:block>
+  <fo:block text-align-last="center" font-size="10pt">
+    <fo:page-number/>
+  </fo:block>
 </fo:static-content>
 
-<fo:flow flow-name="xsl-region-body">
-<fo:block id="AppendixA" font-size="18pt" font-weight="bold">A. Appendix</fo:block>
-  <!--fox:destination internal-destination="AppendixA"/-->
+<fo:flow flow-name="xsl-region-body" text-align="start" font-size="10pt">
+  <fo:block id="e-g-use" font-size="18pt" font-weight="bold">A. The usage of fo:external-graphic</fo:block>
+  <fo:block>
+    <fo:block>The image used in these examples has the following properties:</fo:block>
+    <fo:block start-indent="1cm">
+      <fo:block>169 x 51 px, 96 dpi, results in an intrinsic size of 44.715 x 13.494 mm</fo:block>
+    </fo:block>
+    <fo:block>
+      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
+    </fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: [none]</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: width="60mm" height="20mm"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="60mm" height="20mm" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: inline-progression-dimension="60mm" block-progression-dimension="20mm"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" inline-progression-dimension="60mm" block-progression-dimension="20mm" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: width="30mm" height="20mm"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="30mm" height="20mm" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: width="30mm" height="20mm" overflow="hidden"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="30mm" height="20mm" overflow="hidden" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: width="60mm" height="20mm" text-align="center" display-align="center"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="60mm" height="20mm" text-align="center" display-align="center" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: content-height="20mm"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" content-height="20mm" border="solid 0.1pt" background-color="yellow"/></fo:block>
+    
+    <fo:block keep-with-next.within-column="always">Properties: content-width="60mm" content-height="40mm"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" content-width="60mm" content-height="40mm" border="solid 0.1pt" background-color="yellow"/></fo:block>
+
+    <fo:block keep-with-next.within-column="always">Properties: content-width="60mm" content-height="40mm" scaling="non-uniform"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" content-width="60mm" content-height="40mm" scaling="non-uniform" border="solid 0.1pt" background-color="yellow"/></fo:block>
+
+    <fo:block keep-with-next.within-column="always">Properties: width="60mm" height="20mm" content-width="scale-to-fit"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="60mm" height="20mm" content-width="scale-to-fit" border="solid 0.1pt" background-color="yellow"/></fo:block>
+
+    <fo:block keep-with-next.within-column="always">Properties: width="60mm" content-width="scale-to-fit"</fo:block>
+    <fo:block><fo:external-graphic src="file:../graphics/asf-logo-nt.png" width="60mm" content-width="scale-to-fit" border="solid 0.1pt" background-color="yellow"/></fo:block>
+  </fo:block>
 </fo:flow>
 
 </fo:page-sequence>

Added: xmlgraphics/fop/trunk/examples/fo/graphics/asf-logo-nt.png
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/examples/fo/graphics/asf-logo-nt.png?rev=265037&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlgraphics/fop/trunk/examples/fo/graphics/asf-logo-nt.png
------------------------------------------------------------------------------
    svn:mime-type = image/png



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org