com.alibaba.simpleimage.render
类 ScaleParameter
java.lang.Object
com.alibaba.simpleimage.render.ScaleParameter
public class ScaleParameter
- extends Object
缩放参数定义
- 作者:
- leon
ScaleParameter
public ScaleParameter()
ScaleParameter
public ScaleParameter(int maxWidth,
int maxHeight)
ScaleParameter
public ScaleParameter(int maxWidth,
int maxHeight,
ScaleParameter.Algorithm algorithm)
- 参数:
stretch - maxWidth - maxHeight - algorithm -
getMaxWidth
public int getMaxWidth()
setMaxWidth
public void setMaxWidth(int maxWidth)
getMaxHeight
public int getMaxHeight()
setMaxHeight
public void setMaxHeight(int maxHeight)
getAlgorithm
public ScaleParameter.Algorithm getAlgorithm()
- 返回:
- the algorithm
setAlgorithm
public void setAlgorithm(ScaleParameter.Algorithm algorithm)
- 参数:
algorithm - the algorithm to set
Copyright © 2012–2015 Alibaba Group. All rights reserved.