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.



5429
5430
5431
5432
5433
5434
5435
# File 'lib/v20220817/models.rb', line 5429

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

  • 水印宽。为比例值

  • 水印高。为比例值

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

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



5427
5428
5429
# File 'lib/v20220817/models.rb', line 5427

def Height
  @Height
end

#LocationXObject

Parameters:

  • 水印图片的url

  • 水印宽。为比例值

  • 水印高。为比例值

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

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



5427
5428
5429
# File 'lib/v20220817/models.rb', line 5427

def LocationX
  @LocationX
end

#LocationYObject

Parameters:

  • 水印图片的url

  • 水印宽。为比例值

  • 水印高。为比例值

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

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



5427
5428
5429
# File 'lib/v20220817/models.rb', line 5427

def LocationY
  @LocationY
end

#UrlObject

Parameters:

  • 水印图片的url

  • 水印宽。为比例值

  • 水印高。为比例值

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

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



5427
5428
5429
# File 'lib/v20220817/models.rb', line 5427

def Url
  @Url
end

#WidthObject

Parameters:

  • 水印图片的url

  • 水印宽。为比例值

  • 水印高。为比例值

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

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



5427
5428
5429
# File 'lib/v20220817/models.rb', line 5427

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



5437
5438
5439
5440
5441
5442
5443
# File 'lib/v20220817/models.rb', line 5437

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