arved       02/04/23 15:28:09

  Modified:    src/org/apache/fop/render/xml Tag: fop-0_20_2-maintain
                        XMLRenderer.java
  Log:
  support for background-image (all renderers)
  author: Michael Gratton
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.27.2.2  +42 -1     xml-fop/src/org/apache/fop/render/xml/XMLRenderer.java
  
  Index: XMLRenderer.java
  ===================================================================
  RCS file: /x1/home/cvs/xml-fop/src/org/apache/fop/render/xml/XMLRenderer.java,v
  retrieving revision 1.27.2.1
  retrieving revision 1.27.2.2
  diff -u -r1.27.2.1 -r1.27.2.2
  --- XMLRenderer.java  17 Mar 2002 23:37:07 -0000      1.27.2.1
  +++ XMLRenderer.java  23 Apr 2002 22:28:09 -0000      1.27.2.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: XMLRenderer.java,v 1.27.2.1 2002/03/17 23:37:07 chrisg Exp $
  + * $Id: XMLRenderer.java,v 1.27.2.2 2002/04/23 22:28:09 arved Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -11,6 +11,7 @@
   import org.apache.fop.svg.*;
   import org.apache.fop.render.Renderer;
   import org.apache.fop.render.AbstractRenderer;
  +import org.apache.fop.image.FopImage;
   import org.apache.fop.image.ImageArea;
   import org.apache.fop.layout.*;
   import org.apache.fop.layout.inline.*;
  @@ -152,6 +153,46 @@
   
           /* use PDF's font setup to get PDF metrics */
           org.apache.fop.render.pdf.FontSetup.setup(fontInfo);
  +    }
  +
  +    /**
  +     * Renders an image, scaling it to the given width and height.
  +     * If the scaled width and height is the same intrinsic size
  +     * of the image, the image is not scaled.
  +     * 
  +     * @param x the x position of left edge in millipoints
  +     * @param y the y position of top edge in millipoints
  +     * @param w the width in millipoints
  +     * @param h the height in millipoints
  +     * @param image the image to be rendered
  +     * @param fs the font state to use when rendering text
  +     *           in non-bitmapped images.
  +     */
  +    protected void drawImageScaled(int x, int y, int w, int h,
  +                                FopImage image,
  +                                FontState fs) {
  +     // XXX: implement this
  +    }
  +    
  +    /**
  +     * Renders an image, clipping it as specified. 
  +     * 
  +     * @param x the x position of left edge in millipoints.
  +     * @param y the y position of top edge in millipoints.
  +     * @param clipX the left edge of the clip in millipoints
  +     * @param clipY the top edge of the clip in millipoints
  +     * @param clipW the clip width in millipoints
  +     * @param clipH the clip height in millipoints
  +     * @param fill the image to be rendered
  +     * @param fs the font state to use when rendering text
  +     *           in non-bitmapped images.
  +     */
  +    protected void drawImageClipped(int x, int y,
  +                                 int clipX, int clipY,
  +                                 int clipW, int clipH,
  +                                 FopImage image,
  +                                 FontState fs) {
  +     // XXX: implement this
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to