Documentation of 'Catalano.Imaging.Filters.RotateBilinear' Java class
RotateBilinear
Catalano.Imaging.Filters

Class RotateBilinear

  • All Implemented Interfaces:
    IApply, IApplyInPlace


    public class RotateBilinear
    extends java.lang.Object
    implements IApply, IApplyInPlace
    Rotate image using bilinear algorithm. The class implements image rotation filter using bilinear algorithm, which does not assume any interpolation. Rotation is performed in counterclockwise direction.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RotateBilinear(double angle)
      Initialize a new instance of the RotateBilinear class.
      RotateBilinear(double angle, boolean keepSize)
      Initialize a new instance of the RotateBilinear class.
    • Constructor Detail

      • RotateBilinear

        public RotateBilinear(double angle)
        Initialize a new instance of the RotateBilinear class.
        Parameters:
        angle - Angle [0..360].
      • RotateBilinear

        public RotateBilinear(double angle,
                              boolean keepSize)
        Initialize a new instance of the RotateBilinear class.
        Parameters:
        angle - Angle [0..360].
        keepSize - Keep original size.
    • Method Detail

      • getAngle

        public double getAngle()
        Get Angle.
        Returns:
        Angle.
      • setAngle

        public void setAngle(double angle)
        Set Angle.
        Parameters:
        angle - Angle.
      • isKeepSize

        public boolean isKeepSize()
        Keep original size.
        Returns:
        True if keep the original image size, otherwise false.
      • setKeepSize

        public void setKeepSize(boolean keepSize)
        Set keep original size.
        Parameters:
        keepSize - True if keep the original image size, otherwise false.
      • setFillColor

        public void setFillColor(int red,
                                 int green,
                                 int blue)
        Set Fill color.
        Parameters:
        red - Red channel's value.
        green - Green channel's value.
        blue - Blue channel's value.
      • setFillColor

        public void setFillColor(int gray)
        Set Fill color.
        Parameters:
        gray - Gray channel's value.
      • apply

        public FastBitmap apply(FastBitmap fastBitmap)
        Description copied from interface: IApply
        Apply the filter
        Specified by:
        apply in interface IApply
        Parameters:
        fastBitmap - Image to be processed.
        Returns:
        A processed image.
      • applyInPlace

        public void applyInPlace(FastBitmap fastBitmap)
        Description copied from interface: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.