public class ImageEncodeConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
ImageEncodeConfig() |
ImageEncodeConfig(ImageEncodeConfig 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 |
---|---|
String |
getFormat()
Get 图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getQuality()
Get 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFormat(String Format)
Set 图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setQuality(Long Quality)
Set 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
注意:此字段可能返回 null,表示取不到有效值。
|
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, toJsonString
public ImageEncodeConfig()
public ImageEncodeConfig(ImageEncodeConfig source)
public String getFormat()
public void setFormat(String Format)
Format
- 图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
注意:此字段可能返回 null,表示取不到有效值。public Long getQuality()
public void setQuality(Long Quality)
Quality
- 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.