Class: TencentCloud::Lcic::V20220817::WatermarkConfig

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

Overview

水印配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url = nil, width = nil, height = nil, locationx = nil, locationy = nil) ⇒ WatermarkConfig

Returns a new instance of WatermarkConfig.



5397
5398
5399
5400
5401
5402
5403
# File 'lib/v20220817/models.rb', line 5397

def initialize(url=nil, width=nil, height=nil, locationx=nil, locationy=nil)
  @Url = url
  @Width = width
  @Height = height
  @LocationX = locationx
  @LocationY = locationy
end

Instance Attribute Details

#HeightObject

Parameters:

  • Url:

    水印图片的url

  • Width:

    水印宽。为比例值

  • Height:

    水印高。为比例值

  • LocationX:

    水印X偏移, 取值:0-100, 表示区域X方向的百分比。比如50,则表示位于X轴中间。

  • LocationY:

    水印Y偏移, 取值:0-100, 表示区域Y方向的百分比。比如50,则表示位于Y轴中间。



5395
5396
5397
# File 'lib/v20220817/models.rb', line 5395

def Height
  @Height
end

#LocationXObject

Parameters:

  • Url:

    水印图片的url

  • Width:

    水印宽。为比例值

  • Height:

    水印高。为比例值

  • LocationX:

    水印X偏移, 取值:0-100, 表示区域X方向的百分比。比如50,则表示位于X轴中间。

  • LocationY:

    水印Y偏移, 取值:0-100, 表示区域Y方向的百分比。比如50,则表示位于Y轴中间。



5395
5396
5397
# File 'lib/v20220817/models.rb', line 5395

def LocationX
  @LocationX
end

#LocationYObject

Parameters:

  • Url:

    水印图片的url

  • Width:

    水印宽。为比例值

  • Height:

    水印高。为比例值

  • LocationX:

    水印X偏移, 取值:0-100, 表示区域X方向的百分比。比如50,则表示位于X轴中间。

  • LocationY:

    水印Y偏移, 取值:0-100, 表示区域Y方向的百分比。比如50,则表示位于Y轴中间。



5395
5396
5397
# File 'lib/v20220817/models.rb', line 5395

def LocationY
  @LocationY
end

#UrlObject

Parameters:

  • Url:

    水印图片的url

  • Width:

    水印宽。为比例值

  • Height:

    水印高。为比例值

  • LocationX:

    水印X偏移, 取值:0-100, 表示区域X方向的百分比。比如50,则表示位于X轴中间。

  • LocationY:

    水印Y偏移, 取值:0-100, 表示区域Y方向的百分比。比如50,则表示位于Y轴中间。



5395
5396
5397
# File 'lib/v20220817/models.rb', line 5395

def Url
  @Url
end

#WidthObject

Parameters:

  • Url:

    水印图片的url

  • Width:

    水印宽。为比例值

  • Height:

    水印高。为比例值

  • LocationX:

    水印X偏移, 取值:0-100, 表示区域X方向的百分比。比如50,则表示位于X轴中间。

  • LocationY:

    水印Y偏移, 取值:0-100, 表示区域Y方向的百分比。比如50,则表示位于Y轴中间。



5395
5396
5397
# File 'lib/v20220817/models.rb', line 5395

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



5405
5406
5407
5408
5409
5410
5411
# File 'lib/v20220817/models.rb', line 5405

def deserialize(params)
  @Url = params['Url']
  @Width = params['Width']
  @Height = params['Height']
  @LocationX = params['LocationX']
  @LocationY = params['LocationY']
end