Package it.tidalwave.image.op
Class ScaleOp
- java.lang.Object
-
- it.tidalwave.image.op.Operation
-
- it.tidalwave.image.op.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Quality
getQuality()
double
getXScale()
double
getYScale()
java.lang.String
toString()
-
-
-
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 scaleyScale
- the vertical scalequality
- 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 scalevScale
- 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 scalequality
- 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 classjava.lang.Object
-
-