Class AbstractARGBComposite

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected float alpha  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage compose​(java.awt.image.BufferedImage source, int x, int y, java.awt.image.BufferedImage destination)
      Blends one image directly into another using this composite.
      abstract AbstractCompositeContext createContext​(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)  
      AbstractARGBComposite derive​(float alpha)  
      float getAlpha()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • alpha

        protected float alpha
    • Constructor Detail

      • AbstractARGBComposite

        public AbstractARGBComposite()
      • AbstractARGBComposite

        public AbstractARGBComposite​(float alpha)
    • Method Detail

      • getAlpha

        public float getAlpha()
      • compose

        public java.awt.image.BufferedImage compose​(java.awt.image.BufferedImage source,
                                                    int x,
                                                    int y,
                                                    java.awt.image.BufferedImage destination)
        Blends one image directly into another using this composite. If destination is null, a new compatible image will be created. If the source image is not in a format supported format, a copy of the image, suitably converted, will be used. This will also be done for a non-null destination in an unsupported format; in this case the converted destination is returned rather than the one passed to the method.
        Parameters:
        source - the source image
        x - the x-offset into the destination at which to draw the source
        y - the y-offset into the destination at which to draw the source
        destination - the image to be painted into
        Returns:
        the destination image
      • createContext

        public abstract AbstractCompositeContext createContext​(java.awt.image.ColorModel srcColorModel,
                                                               java.awt.image.ColorModel dstColorModel,
                                                               java.awt.RenderingHints hints)
        Specified by:
        createContext in interface java.awt.Composite