Class ImageConverterBitmap2G2D.Graphics2DImagePainterImpl

java.lang.Object
org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D.Graphics2DImagePainterImpl
All Implemented Interfaces:
Graphics2DImagePainter
Enclosing class:
ImageConverterBitmap2G2D

static class ImageConverterBitmap2G2D.Graphics2DImagePainterImpl extends Object implements Graphics2DImagePainter
  • Field Details

  • Constructor Details

    • Graphics2DImagePainterImpl

      public Graphics2DImagePainterImpl(ImageRendered rendImage)
  • Method Details

    • getImageSize

      public Dimension getImageSize()
      Specified by:
      getImageSize in interface Graphics2DImagePainter
      Returns:
      the dimensions (intrinsic size) of the image to be painted in millipoints
    • paint

      public void paint(Graphics2D g2d, Rectangle2D area)
      Description copied from interface: Graphics2DImagePainter
      Called to paint the image. Implementations should scale so the image is painted fully inside the given area indicated by then Rectangle2D object.
      Specified by:
      paint in interface Graphics2DImagePainter
      Parameters:
      g2d - the Graphics2D instance to paint on
      area - the target area for the image (in target device units)