public class ScalingParameters extends Object implements Serializable
Constructor and Description |
---|
ScalingParameters(int width,
int height,
boolean upscaling)
Creates a set of scaling parameters: the width and height of the bounding box, and whether to
do upscaling.
|
ScalingParameters(int width,
int height,
boolean upscaling,
ImageUtils.ScalingStrategy strategy)
Creates a set of scaling parameters: the width and height of the bounding box, and whether to
do upscaling.
|
ScalingParameters(int width,
int height,
boolean upscaling,
ImageUtils.ScalingStrategy strategy,
float compressionQuality)
Creates a set of scaling parameters: the width and height of the bounding box, and whether to do upscaling.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
float |
getCompressionQuality() |
int |
getHeight() |
ImageUtils.ScalingStrategy |
getStrategy() |
boolean |
getUpscaling() |
int |
getWidth() |
int |
hashCode() |
String |
toString() |
public ScalingParameters(int width, int height, boolean upscaling)
width
- the width of the bounding boxheight
- the height of the bounding boxupscaling
- whether to do upscaling of images that are smaller than the bounding boxpublic ScalingParameters(int width, int height, boolean upscaling, ImageUtils.ScalingStrategy strategy)
width
- the width of the bounding boxheight
- the height of the bounding boxupscaling
- whether to do upscaling of images that are smaller than the bounding boxstrategy
- the scaling strategy to usepublic ScalingParameters(int width, int height, boolean upscaling, ImageUtils.ScalingStrategy strategy, float compressionQuality)
width
- the width of the bounding boxheight
- the height of the bounding boxupscaling
- whether to do upscaling of images that are smaller than the bounding boxstrategy
- the scaling strategy to usecompressionQuality
- compression qualitypublic int getWidth()
public int getHeight()
public boolean getUpscaling()
public ImageUtils.ScalingStrategy getStrategy()
public float getCompressionQuality()
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.