public class ScalingParameters extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ScalingParameters.Builder |
Constructor and Description |
---|
ScalingParameters(int width,
int height,
boolean upscaling)
Deprecated.
Use
ScalingParameters.Builder instead |
ScalingParameters(int width,
int height,
boolean upscaling,
boolean cropping,
ImageUtils.ScalingStrategy strategy,
float compressionQuality)
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)
Deprecated.
Use
ScalingParameters.Builder instead |
ScalingParameters(int width,
int height,
boolean upscaling,
ImageUtils.ScalingStrategy strategy,
float compressionQuality)
Deprecated.
Use
ScalingParameters.Builder instead |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
float |
getCompressionQuality() |
int |
getHeight() |
ImageUtils.ScalingStrategy |
getStrategy() |
boolean |
getUpscaling()
Deprecated.
Use
isUpscaling() instead |
int |
getWidth() |
int |
hashCode() |
boolean |
isCropping() |
boolean |
isUpscaling() |
String |
toString() |
@Deprecated public ScalingParameters(int width, int height, boolean upscaling)
ScalingParameters.Builder
insteadwidth
- the width of the bounding boxheight
- the height of the bounding boxupscaling
- whether to do upscaling of images that are smaller than the bounding box@Deprecated public ScalingParameters(int width, int height, boolean upscaling, ImageUtils.ScalingStrategy strategy)
ScalingParameters.Builder
insteadwidth
- 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 use@Deprecated public ScalingParameters(int width, int height, boolean upscaling, ImageUtils.ScalingStrategy strategy, float compressionQuality)
ScalingParameters.Builder
insteadwidth
- 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 ScalingParameters(int width, int height, boolean upscaling, boolean cropping, 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 boxcropping
- whether to do cropping of images to fill the whole bounding boxstrategy
- the scaling strategy to usecompressionQuality
- compression qualitypublic int getWidth()
public int getHeight()
@Deprecated public boolean getUpscaling()
isUpscaling()
insteadpublic boolean isUpscaling()
public ImageUtils.ScalingStrategy getStrategy()
public boolean isCropping()
public float getCompressionQuality()
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.