Class CompositeRed

  • All Implemented Interfaces:
    java.awt.image.RenderedImage, CachableRed

    public class CompositeRed
    extends AbstractRed
    This is an implementation of an affine operation as a RenderedImage. Right now the implementation makes use of the AffineBufferedImageOp to do the work. Eventually this may move to be more tiled in nature.
    Version:
    $Id: CompositeRed.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • contexts

        java.awt.CompositeContext[] contexts
    • Constructor Detail

      • CompositeRed

        public CompositeRed​(java.util.List srcs,
                            CompositeRule rule)
    • Method Detail

      • copyData

        public java.awt.image.WritableRaster copyData​(java.awt.image.WritableRaster wr)
      • getTile

        public java.awt.image.Raster getTile​(int x,
                                             int y)
        Specified by:
        getTile in interface java.awt.image.RenderedImage
        Overrides:
        getTile in class AbstractRed
      • emptyRect

        public void emptyRect​(java.awt.image.WritableRaster wr)
      • genRect

        public void genRect​(java.awt.image.WritableRaster wr)
      • genRect_OVER

        public void genRect_OVER​(java.awt.image.WritableRaster wr)
      • fixSampleModel

        protected static java.awt.image.SampleModel fixSampleModel​(CachableRed src,
                                                                   java.awt.image.ColorModel cm,
                                                                   java.awt.Rectangle bounds)
        This function 'fixes' the source's sample model. right now it just ensures that the sample model isn't much larger than my width.
      • fixColorModel

        protected static java.awt.image.ColorModel fixColorModel​(CachableRed src)