ImageResizeSettings
Inheritance: java.lang.Object
public class ImageResizeSettings
Image 调整大小设置类
构造函数
方法
| 方法 | 描述 |
|---|---|
| getEntriesCount() | 获取条目计数 |
| setEntriesCount(int value) | 设置条目计数 |
| getMode() | 获取插值模式。 |
| setMode(int value) | 设置插值模式。 |
| getFilterType() | 获取过滤器的类型。 |
| setFilterType(int value) | 设置过滤器的类型。 |
| getColorQuantizationMethod() | 获取颜色量化方法。 |
| setColorQuantizationMethod(int value) | 设置颜色量化方法。 |
| getColorCompareMethod() | 获取颜色比较方法。 |
| setColorCompareMethod(int value) | 设置颜色比较方法。 |
ImageResizeSettings()
public ImageResizeSettings()
初始化 ImageResizeSettings 类的新实例,Resize type = (ResizeType.BilinearResample),Filter type = (ImageFilterType.SmallRectangular),Color quantization method = (ColorQuantizationMethod.Popularity),Color compare method = (ColorCompareMethod.Euclidian),Color entry count = 256 (#getEntriesCount().getEntriesCount())
ImageResizeSettings(int resizeType)
public ImageResizeSettings(int resizeType)
初始化 ImageResizeSettings 类的新实例,Filter type = (ImageFilterType.None),Color quantization method = (ColorQuantizationMethod.None),Color compare method = (ColorCompareMethod.Euclidian),Color entry count = 0 (#getEntriesCount().getEntriesCount())
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| resizeType | int | 缩放类型。 |
ImageResizeSettings(int resizeType, int filterType)
public ImageResizeSettings(int resizeType, int filterType)
初始化 ImageResizeSettings 类的新实例,Color quantization method = (ColorQuantizationMethod.None),Color compare method = (ColorCompareMethod.Euclidian),Color entry count = 0 (#getEntriesCount().getEntriesCount())
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| resizeType | int | 缩放类型。 |
| filterType | int | 过滤器类型。 |
ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod)
public ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod)
初始化 ImageResizeSettings 类的新实例,Color compare method = (ColorCompareMethod.Euclidian),Color entry count = 0 (#getEntriesCount().getEntriesCount())
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| resizeType | int | 缩放类型。 |
| filterType | int | 过滤器类型。 |
| colorQuantizationMethod | int | 颜色量化方法。 |
ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod, int colorCompareMethod)
public ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod, int colorCompareMethod)
初始化 ImageResizeSettings 类的新实例,Color entry count = 0 (#getEntriesCount().getEntriesCount())
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| resizeType | int | 缩放类型。 |
| filterType | int | 过滤器类型。 |
| colorQuantizationMethod | int | 颜色量化方法。 |
| colorCompareMethod | int | 颜色比较方法。 |
getEntriesCount()
public int getEntriesCount()
获取条目计数
Returns: int - 条目计数
setEntriesCount(int value)
public void setEntriesCount(int value)
设置条目计数
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 条目计数 |
getMode()
public int getMode()
获取插值模式。
Returns: int - 模式。
setMode(int value)
public void setMode(int value)
设置插值模式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 模式。 |
getFilterType()
public int getFilterType()
获取过滤器的类型。
Returns: int - 过滤器的类型。
setFilterType(int value)
public void setFilterType(int value)
设置过滤器的类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 过滤器的类型。 |
getColorQuantizationMethod()
public int getColorQuantizationMethod()
获取颜色量化方法。
Returns: int - 颜色量化方法。
setColorQuantizationMethod(int value)
public void setColorQuantizationMethod(int value)
设置颜色量化方法。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 颜色量化方法。 |
getColorCompareMethod()
public int getColorCompareMethod()
获取颜色比较方法。
Returns: int - 颜色比较方法。
setColorCompareMethod(int value)
public void setColorCompareMethod(int value)
设置颜色比较方法。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 颜色比较方法。 |