public class ImageScale extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ImageScale() | 
| ImageScale(ImageScale 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 取值为 HeightFirst 或 Force 时此字段有效。 | 
| Long | getLongEdge()Get 输出图片的长边长度,单位为像素。当 Type 取值为 LongEdgeFirst 时此字段有效。 | 
| Long | getShortEdge()Get 输出图片的短边长度,单位为像素。当 Type 取值为 ShortEdgeFirst 时此字段有效。 | 
| String | getType()Get 图片缩放的操作类型。可选模式有:
WidthFirst : 指定图片的宽为 Width ,高度等比缩放。
HeightFirst : 指定图片的高为 Height ,宽度等比缩放。
LongEdgeFirst : 指定图片的长边为 LongEdge ,短边等比缩放。
ShortEdgeFirst : 指定图片的短边为 ShortEdge ,长边等比缩放。
Force : 忽略原图宽高比例,指定图片宽度为 Width,高度为 Height ,强行缩放图片,可能导致目标图片变形。 | 
| Long | getWidth()Get 输出图片的宽度,单位为像素。当 Type 取值为 WidthFirst 或 Force 时此字段有效。 | 
| void | setHeight(Long Height)Set 输出图片的高度,单位为像素。当 Type 取值为 HeightFirst 或 Force 时此字段有效。 | 
| void | setLongEdge(Long LongEdge)Set 输出图片的长边长度,单位为像素。当 Type 取值为 LongEdgeFirst 时此字段有效。 | 
| void | setShortEdge(Long ShortEdge)Set 输出图片的短边长度,单位为像素。当 Type 取值为 ShortEdgeFirst 时此字段有效。 | 
| void | setType(String Type)Set 图片缩放的操作类型。可选模式有:
WidthFirst : 指定图片的宽为 Width ,高度等比缩放。
HeightFirst : 指定图片的高为 Height ,宽度等比缩放。
LongEdgeFirst : 指定图片的长边为 LongEdge ,短边等比缩放。
ShortEdgeFirst : 指定图片的短边为 ShortEdge ,长边等比缩放。
Force : 忽略原图宽高比例,指定图片宽度为 Width,高度为 Height ,强行缩放图片,可能导致目标图片变形。 | 
| void | setWidth(Long Width)Set 输出图片的宽度,单位为像素。当 Type 取值为 WidthFirst 或 Force 时此字段有效。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ImageScale()
public ImageScale(ImageScale source)
public String getType()
public void setType(String Type)
Type - 图片缩放的操作类型。可选模式有:
public Long getHeight()
public void setHeight(Long Height)
Height - 输出图片的高度,单位为像素。当 Type 取值为 HeightFirst 或 Force 时此字段有效。public Long getWidth()
public void setWidth(Long Width)
Width - 输出图片的宽度,单位为像素。当 Type 取值为 WidthFirst 或 Force 时此字段有效。public Long getLongEdge()
public void setLongEdge(Long LongEdge)
LongEdge - 输出图片的长边长度,单位为像素。当 Type 取值为 LongEdgeFirst 时此字段有效。public Long getShortEdge()
public void setShortEdge(Long ShortEdge)
ShortEdge - 输出图片的短边长度,单位为像素。当 Type 取值为 ShortEdgeFirst 时此字段有效。Copyright © 2025. All rights reserved.