com.alibaba.simpleimage.render
类 ScaleParameter

java.lang.Object
  继承者 com.alibaba.simpleimage.render.ScaleParameter

public class ScaleParameter
extends Object

缩放参数定义

作者:
leon

嵌套类摘要
static class ScaleParameter.Algorithm
           
 
构造方法摘要
ScaleParameter()
           
ScaleParameter(int maxWidth, int maxHeight)
           
ScaleParameter(int maxWidth, int maxHeight, ScaleParameter.Algorithm algorithm)
           
 
方法摘要
 ScaleParameter.Algorithm getAlgorithm()
           
 int getMaxHeight()
           
 int getMaxWidth()
           
 void setAlgorithm(ScaleParameter.Algorithm algorithm)
           
 void setMaxHeight(int maxHeight)
           
 void setMaxWidth(int maxWidth)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

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–2013 Alibaba Group. All rights reserved.