Class ScaleOp


  • public class ScaleOp
    extends Operation
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      ScaleOp​(double scale)
      Creates a scaled image.
      ScaleOp​(double hScale, double vScale)
      Creates a scaled image.
      ScaleOp​(double xScale, double yScale, Quality quality)
      Creates a scaled image.
      ScaleOp​(double scale, Quality quality)
      Creates a scaled image.
    • Constructor Detail

      • ScaleOp

        public ScaleOp​(double xScale,
                       double yScale,
                       Quality quality)
        Creates a scaled image. This method allows to choose the desired interpolation algorithm.
        Parameters:
        xScale - the horizontal scale
        yScale - the vertical scale
        quality - the quality
      • ScaleOp

        public ScaleOp​(double scale)
        Creates a scaled image. The quality is the fastest.
        Parameters:
        scale - the scale
      • ScaleOp

        public ScaleOp​(double hScale,
                       double vScale)
        Creates a scaled image. The quality is the fastest.
        Parameters:
        hScale - the horizontal scale
        vScale - the vertical scale
      • ScaleOp

        public ScaleOp​(double scale,
                       Quality quality)
        Creates a scaled image. This method allows to choose the desired interpolation algorithm.
        Parameters:
        scale - the scale
        quality - the quality
    • Method Detail

      • getXScale

        public double getXScale()
      • getYScale

        public double getYScale()
      • getQuality

        public Quality getQuality()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object