ImageScaleSetting
Parameter ImageScaleSetting
is for controlling how to up or down scale the image.
"ImageScaleSetting":
{
"ScaleType": "ST_SCALE_DOWN",
"ReferenceEdge": "RE_SHORTER_EDGE",
"EdgeLengthThreshold": 2300
}
ScaleType
Specifies whether to scale up or down the image.
ScaleType Parameter Details |
---|
Type String |
Value range “ST_SCALE_DOWN”, “ST_SCALE_UP” |
Default Value “ST_SCALE_DOWN” |
ReferenceEdge
Specifies which edge (longer edge or shorter edge) to use when scaling the image.
ReferenceEdge Parameter Details |
---|
Type String |
Value range “RE_SHORTER_EDGE”, “RE_LONGER_EDGE” |
Default Value “RE_SHORTER_EDGE” |
EdgeLengthThreshold
Specifies the threshold for scaling the image.
- If the
ScaleType
is set to “ST_SCALE_DOWN”, the image will be continuously scaled down until theReferenceEdge
is shorter than theEdgeLengthThreshold
. - If the
ScaleType
is set to “ST_SCALE_UP”, the image will be continuously scaled up until theReferenceEdge
is longer than theEdgeLengthThreshold
.
EdgeLengthThreshold Parameter Details |
---|
Type int |
Value range [512, 0x7fffffff] |
Default Value 2300 |