Package | Description |
---|---|
com.tencentcloudapi.aiart.v20221229.models |
Modifier and Type | Method and Description |
---|---|
ResultConfig |
ImageToImageRequest.getResultConfig()
Get 生成图结果的配置,包括输出图片分辨率和尺寸等。
支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。
不传默认使用origin。
|
ResultConfig |
TextToImageRequest.getResultConfig()
Get 生成图结果的配置,包括输出图片分辨率和尺寸等。
支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
Modifier and Type | Method and Description |
---|---|
void |
ImageToImageRequest.setResultConfig(ResultConfig ResultConfig)
Set 生成图结果的配置,包括输出图片分辨率和尺寸等。
支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。
不传默认使用origin。
|
void |
TextToImageRequest.setResultConfig(ResultConfig ResultConfig)
Set 生成图结果的配置,包括输出图片分辨率和尺寸等。
支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
Constructor and Description |
---|
ResultConfig(ResultConfig 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.
|
Copyright © 2024. All rights reserved.