Class: TencentCloud::Aiart::V20221229::LogoParam

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

Overview

logo参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logourl = nil, logoimage = nil, logorect = nil) ⇒ LogoParam

Returns a new instance of LogoParam.



340
341
342
343
344
# File 'lib/v20221229/models.rb', line 340

def initialize(logourl=nil, logoimage=nil, logorect=nil)
  @LogoUrl = logourl
  @LogoImage = logoimage
  @LogoRect = logorect
end

Instance Attribute Details

#LogoImageObject

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

    水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准

  • LogoRect:

    水印图片位于生成结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配



338
339
340
# File 'lib/v20221229/models.rb', line 338

def LogoImage
  @LogoImage
end

#LogoRectObject

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

    水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准

  • LogoRect:

    水印图片位于生成结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配



338
339
340
# File 'lib/v20221229/models.rb', line 338

def LogoRect
  @LogoRect
end

#LogoUrlObject

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

    水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准

  • LogoRect:

    水印图片位于生成结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配



338
339
340
# File 'lib/v20221229/models.rb', line 338

def LogoUrl
  @LogoUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



346
347
348
349
350
351
352
353
# File 'lib/v20221229/models.rb', line 346

def deserialize(params)
  @LogoUrl = params['LogoUrl']
  @LogoImage = params['LogoImage']
  unless params['LogoRect'].nil?
    @LogoRect = LogoRect.new
    @LogoRect.deserialize(params['LogoRect'])
  end
end