Class: TencentCloud::Mps::V20190612::TextWatermarkTemplateInput

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:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。.
  • #FontSize ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。.
  • #FontType ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。.
  • #TextContent ⇒ Object
  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。.

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of TextWatermarkTemplateInput.

    
    
    30845
    30846
    30847
    30848
    30849
    30850
    30851
    # File 'lib/v20190612/models.rb', line 30845
    
    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:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • FontType:

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

    • FontSize:

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

    • FontColor:

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

    • FontAlpha:

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

    • TextContent:

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

    
    
    30843
    30844
    30845
    # File 'lib/v20190612/models.rb', line 30843
    
    def FontAlpha
      @FontAlpha
    end

    #FontColorObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • FontType:

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

    • FontSize:

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

    • FontColor:

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

    • FontAlpha:

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

    • TextContent:

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

    
    
    30843
    30844
    30845
    # File 'lib/v20190612/models.rb', line 30843
    
    def FontColor
      @FontColor
    end

    #FontSizeObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • FontType:

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

    • FontSize:

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

    • FontColor:

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

    • FontAlpha:

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

    • TextContent:

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

    
    
    30843
    30844
    30845
    # File 'lib/v20190612/models.rb', line 30843
    
    def FontSize
      @FontSize
    end

    #FontTypeObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • FontType:

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

    • FontSize:

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

    • FontColor:

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

    • FontAlpha:

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

    • TextContent:

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

    
    
    30843
    30844
    30845
    # File 'lib/v20190612/models.rb', line 30843
    
    def FontType
      @FontType
    end

    #TextContentObject

  • simkai.ttf:可以支持中文和英文;
  • arial.ttf:仅支持英文。
  • 0:完全透明
  • 1:完全不透明
  • 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • FontType:

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

    • FontSize:

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

    • FontColor:

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

    • FontAlpha:

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

    • TextContent:

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

    
    
    30843
    30844
    30845
    # File 'lib/v20190612/models.rb', line 30843
    
    def TextContent
      @TextContent
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    30853
    30854
    30855
    30856
    30857
    30858
    30859
    # File 'lib/v20190612/models.rb', line 30853
    
    def deserialize(params)
      @FontType = params['FontType']
      @FontSize = params['FontSize']
      @FontColor = params['FontColor']
      @FontAlpha = params['FontAlpha']
      @TextContent = params['TextContent']
    end