Class: TencentCloud::Aiart::V20221229::ResultConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20221229/models.rb

Overview

返回结果配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resolution = nil) ⇒ ResultConfig

Returns a new instance of ResultConfig.



648
649
650
# File 'lib/v20221229/models.rb', line 648

def initialize(resolution=nil)
  @Resolution = resolution
end

Instance Attribute Details

#ResolutionObject

图像风格化(图生图)支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。



646
647
648
# File 'lib/v20221229/models.rb', line 646

def Resolution
  @Resolution
end

Instance Method Details

#deserialize(params) ⇒ Object



652
653
654
# File 'lib/v20221229/models.rb', line 652

def deserialize(params)
  @Resolution = params['Resolution']
end