Class: TencentCloud::Mps::V20190612::TextWatermarkTemplateInputForUpdate

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

Overview

文字水印模板

Instance Attribute Summary collapse

  • #FontColor ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • .
  • #FontSize ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • .
  • #FontType ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • .
  • #TextContent ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(fonttype = nil, fontsize = nil, fontcolor = nil, fontalpha = nil, textcontent = nil) ⇒ TextWatermarkTemplateInputForUpdate

    Returns a new instance of TextWatermarkTemplateInputForUpdate.

    
    
    30881
    30882
    30883
    30884
    30885
    30886
    30887
    # File 'lib/v20190612/models.rb', line 30881
    
    def initialize(fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil, textcontent=nil)
      @FontType = fonttype
      @FontSize = fontsize
      @FontColor = fontcolor
      @FontAlpha = fontalpha
      @TextContent = textcontent
    end
    

    Instance Attribute Details

    #FontAlphaObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • Parameters:

    • FontType:

      字体类型,目前可以支持两种:

    • FontSize:

      字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]

    • FontColor:

      字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。

    • FontAlpha:

      文字透明度,取值范围:(0, 1]

    • TextContent:

      文字内容,长度不超过100个字符。

    
    
    30879
    30880
    30881
    # File 'lib/v20190612/models.rb', line 30879
    
    def FontAlpha
      @FontAlpha
    end
    

    #FontColorObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • Parameters:

    • FontType:

      字体类型,目前可以支持两种:

    • FontSize:

      字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]

    • FontColor:

      字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。

    • FontAlpha:

      文字透明度,取值范围:(0, 1]

    • TextContent:

      文字内容,长度不超过100个字符。

    
    
    30879
    30880
    30881
    # File 'lib/v20190612/models.rb', line 30879
    
    def FontColor
      @FontColor
    end
    

    #FontSizeObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • Parameters:

    • FontType:

      字体类型,目前可以支持两种:

    • FontSize:

      字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]

    • FontColor:

      字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。

    • FontAlpha:

      文字透明度,取值范围:(0, 1]

    • TextContent:

      文字内容,长度不超过100个字符。

    
    
    30879
    30880
    30881
    # File 'lib/v20190612/models.rb', line 30879
    
    def FontSize
      @FontSize
    end
    

    #FontTypeObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • Parameters:

    • FontType:

      字体类型,目前可以支持两种:

    • FontSize:

      字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]

    • FontColor:

      字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。

    • FontAlpha:

      文字透明度,取值范围:(0, 1]

    • TextContent:

      文字内容,长度不超过100个字符。

    
    
    30879
    30880
    30881
    # File 'lib/v20190612/models.rb', line 30879
    
    def FontType
      @FontType
    end
    

    #TextContentObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • Parameters:

    • FontType:

      字体类型,目前可以支持两种:

    • FontSize:

      字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]

    • FontColor:

      字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。

    • FontAlpha:

      文字透明度,取值范围:(0, 1]

    • TextContent:

      文字内容,长度不超过100个字符。

    
    
    30879
    30880
    30881
    # File 'lib/v20190612/models.rb', line 30879
    
    def TextContent
      @TextContent
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    30889
    30890
    30891
    30892
    30893
    30894
    30895
    # File 'lib/v20190612/models.rb', line 30889
    
    def deserialize(params)
      @FontType = params['FontType']
      @FontSize = params['FontSize']
      @FontColor = params['FontColor']
      @FontAlpha = params['FontAlpha']
      @TextContent = params['TextContent']
    end