ImageResizeSettings
Inheritance: java.lang.Object
public class ImageResizeSettings
Image resize settings class
Constructors
Methods
Method | Description |
---|---|
getEntriesCount() | Gets the entries count |
setEntriesCount(int value) | Sets the entries count |
getMode() | Gets the interpolation mode. |
setMode(int value) | Sets the interpolation mode. |
getFilterType() | Gets the type of the filter. |
setFilterType(int value) | Sets the type of the filter. |
getColorQuantizationMethod() | Gets the color quantization method. |
setColorQuantizationMethod(int value) | Sets the color quantization method. |
getColorCompareMethod() | Gets the color compare method. |
setColorCompareMethod(int value) | Sets the color compare method. |
ImageResizeSettings()
public ImageResizeSettings()
Initializes a new instance of the ImageResizeSettings
class with Resize type = (ResizeType.BilinearResample) with Filter type = (ImageFilterType.SmallRectangular) with Color quantization method = (ColorQuantizationMethod.Popularity) with Color compare method = (ColorCompareMethod.Euclidian) with Color entry count = 256 (.getEntriesCount())
ImageResizeSettings(int resizeType)
public ImageResizeSettings(int resizeType)
Initializes a new instance of the ImageResizeSettings class with Filter type = (ImageFilterType.None) with Color quantization method = (ColorQuantizationMethod.None) with Color compare method = (ColorCompareMethod.Euclidian) with Color entry count = 0 (.getEntriesCount())
Parameters:
Parameter | Type | Description |
---|---|---|
resizeType | int | Resize type. |
ImageResizeSettings(int resizeType, int filterType)
public ImageResizeSettings(int resizeType, int filterType)
Initializes a new instance of the ImageResizeSettings class with Color quantization method = (ColorQuantizationMethod.None) with Color compare method = (ColorCompareMethod.Euclidian) with Color entry count = 0 (.getEntriesCount())
Parameters:
Parameter | Type | Description |
---|---|---|
resizeType | int | Resize type. |
filterType | int | Filter type. |
ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod)
public ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod)
Initializes a new instance of the ImageResizeSettings class with Color compare method = (ColorCompareMethod.Euclidian) with Color entry count = 0 (.getEntriesCount())
Parameters:
Parameter | Type | Description |
---|---|---|
resizeType | int | Resize type. |
filterType | int | Filter type. |
colorQuantizationMethod | int | Color quantization method. |
ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod, int colorCompareMethod)
public ImageResizeSettings(int resizeType, int filterType, int colorQuantizationMethod, int colorCompareMethod)
Initializes a new instance of the ImageResizeSettings class with Color entry count = 0 (.getEntriesCount())
Parameters:
Parameter | Type | Description |
---|---|---|
resizeType | int | Resize type. |
filterType | int | Filter type. |
colorQuantizationMethod | int | Color quantization method. |
colorCompareMethod | int | Color compare method. |
getEntriesCount()
public int getEntriesCount()
Gets the entries count
Returns: int - The entries count
setEntriesCount(int value)
public void setEntriesCount(int value)
Sets the entries count
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The entries count |
getMode()
public int getMode()
Gets the interpolation mode.
Returns: int - The mode.
setMode(int value)
public void setMode(int value)
Sets the interpolation mode.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The mode. |
getFilterType()
public int getFilterType()
Gets the type of the filter.
Returns: int - The type of the filter.
setFilterType(int value)
public void setFilterType(int value)
Sets the type of the filter.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The type of the filter. |
getColorQuantizationMethod()
public int getColorQuantizationMethod()
Gets the color quantization method.
Returns: int - The color quantization method.
setColorQuantizationMethod(int value)
public void setColorQuantizationMethod(int value)
Sets the color quantization method.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The color quantization method. |
getColorCompareMethod()
public int getColorCompareMethod()
Gets the color compare method.
Returns: int - The color compare method.
setColorCompareMethod(int value)
public void setColorCompareMethod(int value)
Sets the color compare method.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The color compare method. |