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 The image height (pixels).
|
Long |
getLongEdge()
Get The long side of the output image (pixels).
|
Long |
getShortEdge()
Get The short side of the output image (pixels).
|
String |
getType()
Get The scaling type.
|
Long |
getWidth()
Get The image width (pixels).
|
void |
setHeight(Long Height)
Set The image height (pixels).
|
void |
setLongEdge(Long LongEdge)
Set The long side of the output image (pixels).
|
void |
setShortEdge(Long ShortEdge)
Set The short side of the output image (pixels).
|
void |
setType(String Type)
Set The scaling type.
|
void |
setWidth(Long Width)
Set The image width (pixels).
|
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 - The scaling type. Valid values:
public Long getHeight()
public void setHeight(Long Height)
Height - The image height (pixels). This parameter is valid only if `Type` is `HeightFirst` or `Force`.public Long getWidth()
public void setWidth(Long Width)
Width - The image width (pixels). This parameter is valid only if `Type` is `WidthFirst` or `Force`.public Long getLongEdge()
public void setLongEdge(Long LongEdge)
LongEdge - The long side of the output image (pixels). This parameter is valid only if `Type` is `LongEdgeFirst`.public Long getShortEdge()
public void setShortEdge(Long ShortEdge)
ShortEdge - The short side of the output image (pixels). This parameter is valid only if `Type` is `ShortEdgeFirst`.Copyright © 2025. All rights reserved.