public class ImageCenterCut extends AbstractModel
Constructor and Description |
---|
ImageCenterCut() |
ImageCenterCut(ImageCenterCut source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getHeight()
Get 输出图片的高度,单位为像素,当 Type 取值为 Rectangle 时有效。
|
Long |
getRadius()
Get 输出图片的半径,单位为像素,当 Type 取值为 Circle 时有效。
|
String |
getType()
Get 图片的裁剪模式,可选 Circle 和 Rectangle。
Circle : 内切圆裁剪,输出图片半径为 Radius。
Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。
|
Long |
getWidth()
Get 输出图片的宽度,单位为像素,当 Type 取值为 Rectangle 时有效。
|
void |
setHeight(Long Height)
Set 输出图片的高度,单位为像素,当 Type 取值为 Rectangle 时有效。
|
void |
setRadius(Long Radius)
Set 输出图片的半径,单位为像素,当 Type 取值为 Circle 时有效。
|
void |
setType(String Type)
Set 图片的裁剪模式,可选 Circle 和 Rectangle。
Circle : 内切圆裁剪,输出图片半径为 Radius。
Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。
|
void |
setWidth(Long Width)
Set 输出图片的宽度,单位为像素,当 Type 取值为 Rectangle 时有效。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ImageCenterCut()
public ImageCenterCut(ImageCenterCut source)
public String getType()
public void setType(String Type)
Type
- 图片的裁剪模式,可选 Circle 和 Rectangle。
public Long getWidth()
public void setWidth(Long Width)
Width
- 输出图片的宽度,单位为像素,当 Type 取值为 Rectangle 时有效。public Long getHeight()
public void setHeight(Long Height)
Height
- 输出图片的高度,单位为像素,当 Type 取值为 Rectangle 时有效。public Long getRadius()
public void setRadius(Long Radius)
Radius
- 输出图片的半径,单位为像素,当 Type 取值为 Circle 时有效。Copyright © 2023. All rights reserved.