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.



542
543
544
545
546
# File 'lib/v20221229/models.rb', line 542

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

Instance Attribute Details

#LogoImageObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

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

  • LogoRect:

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



540
541
542
# File 'lib/v20221229/models.rb', line 540

def LogoImage
  @LogoImage
end

#LogoRectObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

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

  • LogoRect:

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



540
541
542
# File 'lib/v20221229/models.rb', line 540

def LogoRect
  @LogoRect
end

#LogoUrlObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • LogoUrl:

    水印 Url

  • LogoImage:

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

  • LogoRect:

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



540
541
542
# File 'lib/v20221229/models.rb', line 540

def LogoUrl
  @LogoUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



548
549
550
551
552
553
554
555
# File 'lib/v20221229/models.rb', line 548

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