public class ImageView extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
format
The output format of the target thumbnail, such as jpg, gif, png, etc.
|
int |
height
The height of the target thumbnail, in pixel.
|
int |
mode
The processing mode of the thumbnail.
|
int |
quality
The quality of the target thumbnail, in range 1-100.
|
int |
width
The width of the target thumbnail, in pixel.
|
| 构造器和说明 |
|---|
ImageView() |
public int mode
as follows : mode=1, limit the width and height of the target thumbnail, amplifying it and cutting from the center of thumbnail with the specified width and height. mode=2 with specified width and height, indicates that limiting the long side of the thumbnail, the short side geometric abbreviated adaptive, and the size of the thumbnail is limited to the speicifid widht and height within the rectangle. mode=2 with specified width but without height, indicates that limiting the width of the target thumbnail, height geometric abbreviated adaptive. mode=2 with specified height but without width, indicates that limiting the height of the target thumbnail, width geometric abbreviated adaptive.
public int width
public int height
public int quality
public String format
public String makeParams()
public String makeRequest(String url)
url - The image's url on qiniu server.public CallRet call(String url, Mac mac) throws AuthException
AuthExceptionCopyright © 2014. All Rights Reserved.