public static enum ImageConstants.ImageSize extends java.lang.Enum<ImageConstants.ImageSize>
Description: 图片显示尺寸枚举
Copyright: Copyright (c) 2016
Company: seeyon.com
枚举常量和说明 |
---|
auto
自动计算尺寸
|
custom
自定义图片尺寸,需要传入h={Integer} & w = {Integer} 两个参数来自定义切图
|
original
图片等比压缩后的图片,该图片的高和宽不会变
|
resize
按照百分比压缩图片,需要传入s={0 |
smallPX
兼容fileupload.do的 showType=small&smallPX=100,
使用最小边[smallPX]
|
source
图片源文件,不对图片进行任何操作
|
限定符和类型 | 方法和说明 |
---|---|
static ImageConstants.ImageSize |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ImageConstants.ImageSize[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ImageConstants.ImageSize source
public static final ImageConstants.ImageSize original
public static final ImageConstants.ImageSize resize
public static final ImageConstants.ImageSize custom
public static final ImageConstants.ImageSize auto
public static final ImageConstants.ImageSize smallPX
public static ImageConstants.ImageSize[] values()
for (ImageConstants.ImageSize c : ImageConstants.ImageSize.values()) System.out.println(c);
public static ImageConstants.ImageSize valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值