Class: TencentCloud::Vclm::V20240523::LogoParam

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20240523/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.



740
741
742
743
744
# File 'lib/v20240523/models.rb', line 740

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

Instance Attribute Details

#LogoImage ⇒ Object

Parameters:

  • LogoUrl: —

    水印 Url

  • LogoImage: —

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

  • LogoRect: —

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



738
739
740
# File 'lib/v20240523/models.rb', line 738

def LogoImage
  @LogoImage
end

#LogoRect ⇒ Object

Parameters:

  • LogoUrl: —

    水印 Url

  • LogoImage: —

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

  • LogoRect: —

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



738
739
740
# File 'lib/v20240523/models.rb', line 738

def LogoRect
  @LogoRect
end

#LogoUrl ⇒ Object

Parameters:

  • LogoUrl: —

    水印 Url

  • LogoImage: —

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

  • LogoRect: —

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



738
739
740
# File 'lib/v20240523/models.rb', line 738

def LogoUrl
  @LogoUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



746
747
748
749
750
751
752
753
# File 'lib/v20240523/models.rb', line 746

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