Class ConvolveMatrixRable8Bit

    • Constructor Detail

      • ConvolveMatrixRable8Bit

        public ConvolveMatrixRable8Bit​(Filter source)
    • Method Detail

      • getKernel

        public java.awt.image.Kernel getKernel()
        Returns the Convolution Kernel in use
        Specified by:
        getKernel in interface ConvolveMatrixRable
      • setKernel

        public void setKernel​(java.awt.image.Kernel k)
        Sets the Convolution Kernel to use.
        Specified by:
        setKernel in interface ConvolveMatrixRable
        Parameters:
        k - Kernel to use for convolution.
      • getTarget

        public java.awt.Point getTarget()
        Description copied from interface: ConvolveMatrixRable
        Returns the target point of the kernel (what pixel under the kernel should be set to the result of convolution).
        Specified by:
        getTarget in interface ConvolveMatrixRable
      • setTarget

        public void setTarget​(java.awt.Point pt)
        Description copied from interface: ConvolveMatrixRable
        Sets the target point of the kernel (what pixel under the kernel should be set to the result of the convolution).
        Specified by:
        setTarget in interface ConvolveMatrixRable
      • getBias

        public double getBias()
        Returns the shift value to apply to the result of convolution
        Specified by:
        getBias in interface ConvolveMatrixRable
      • setBias

        public void setBias​(double bias)
        Returns the shift value to apply to the result of convolution
        Specified by:
        setBias in interface ConvolveMatrixRable
      • getKernelUnitLength

        public double[] getKernelUnitLength()
        Returns the [x,y] distance in user space between kernel values
        Specified by:
        getKernelUnitLength in interface ConvolveMatrixRable
      • setKernelUnitLength

        public void setKernelUnitLength​(double[] kernelUnitLength)
        Sets the [x,y] distance in user space between kernel values If set to zero then device space will be used.
        Specified by:
        setKernelUnitLength in interface ConvolveMatrixRable
      • getPreserveAlpha

        public boolean getPreserveAlpha()
        Returns false if the convolution should affect the Alpha channel
        Specified by:
        getPreserveAlpha in interface ConvolveMatrixRable
      • setPreserveAlpha

        public void setPreserveAlpha​(boolean preserveAlpha)
        Sets Alpha channel handling. A value of False indicates that the convolution should apply to the Alpha Channel
        Specified by:
        setPreserveAlpha in interface ConvolveMatrixRable
      • fixAlpha

        public void fixAlpha​(java.awt.image.BufferedImage bi)
      • fixAlpha_INT_PACK

        public void fixAlpha_INT_PACK​(java.awt.image.WritableRaster wr)
      • fixAlpha_FALLBACK

        public void fixAlpha_FALLBACK​(java.awt.image.WritableRaster wr)
      • createRendering

        public java.awt.image.RenderedImage createRendering​(java.awt.image.renderable.RenderContext rc)
        Specified by:
        createRendering in interface java.awt.image.renderable.RenderableImage