Class: TencentCloud::Ie::V20200304::TextMarkInfoItem

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

Overview

画质重生子任务文字水印信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, posx = nil, posy = nil, fontsize = nil, fontfile = nil, fontcolor = nil, fontalpha = nil) ⇒ TextMarkInfoItem

Returns a new instance of TextMarkInfoItem.



3418
3419
3420
3421
3422
3423
3424
3425
3426
# File 'lib/v20200304/models.rb', line 3418

def initialize(text=nil, posx=nil, posy=nil, fontsize=nil, fontfile=nil, fontcolor=nil, fontalpha=nil)
  @Text = text
  @PosX = posx
  @PosY = posy
  @FontSize = fontsize
  @FontFile = fontfile
  @FontColor = fontcolor
  @FontAlpha = fontalpha
end

Instance Attribute Details

#FontAlphaObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def FontAlpha
  @FontAlpha
end

#FontColorObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def FontColor
  @FontColor
end

#FontFileObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def FontFile
  @FontFile
end

#FontSizeObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def FontSize
  @FontSize
end

#PosXObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def PosX
  @PosX
end

#PosYObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def PosY
  @PosY
end

#TextObject

Parameters:

  • Text:

    文字内容。

  • PosX:

    文字水印X坐标。

  • PosY:

    文字水印Y坐标。

  • FontSize:

    文字大小

  • FontFile:

    字体,可选项:hei,song,simkai,arial;默认hei(黑体)。

  • FontColor:

    字体颜色,颜色见附录,不填默认black。

  • FontAlpha:

    文字透明度,可选值0-1。0:不透明,1:全透明。默认为0



3416
3417
3418
# File 'lib/v20200304/models.rb', line 3416

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



3428
3429
3430
3431
3432
3433
3434
3435
3436
# File 'lib/v20200304/models.rb', line 3428

def deserialize(params)
  @Text = params['Text']
  @PosX = params['PosX']
  @PosY = params['PosY']
  @FontSize = params['FontSize']
  @FontFile = params['FontFile']
  @FontColor = params['FontColor']
  @FontAlpha = params['FontAlpha']
end