类 ApplyMaskFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class ApplyMaskFilter
    extends AbstractBufferedImageOp
    A filter which uses the alpha channel of a "mask" image to interpolate between a source and destination image.
    • 构造器详细资料

      • ApplyMaskFilter

        public ApplyMaskFilter()
        Construct an ApplyMaskFIlter.
      • ApplyMaskFilter

        public ApplyMaskFilter​(java.awt.image.BufferedImage maskImage,
                               java.awt.image.BufferedImage destination)
        Construct an ApplyMaskFIlter.
        参数:
        maskImage - the mask image
        destination - the destination image
    • 方法详细资料

      • setDestination

        public void setDestination​(java.awt.image.BufferedImage destination)
        Set the destination image.
        参数:
        destination - the destination image
        另请参阅:
        getDestination()
      • setMaskImage

        public void setMaskImage​(java.awt.image.BufferedImage maskImage)
        Set the mask image.
        参数:
        maskImage - the mask image
        另请参阅:
        getMaskImage()
      • composeThroughMask

        public static void composeThroughMask​(java.awt.image.Raster src,
                                              java.awt.image.WritableRaster dst,
                                              java.awt.image.Raster sel)
        Interpolates between two rasters according to the alpha level of a mask raster.
        参数:
        src - the source raster
        dst - the destination raster
        sel - the mask raster
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object