Class: TencentCloud::Vod::V20180717::ImageOperation

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

Overview

单个图片处理操作。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, scale = nil, centercut = nil, blur = nil) ⇒ ImageOperation

Returns a new instance of ImageOperation.



15578
15579
15580
15581
15582
15583
# File 'lib/v20180717/models.rb', line 15578

def initialize(type=nil, scale=nil, centercut=nil, blur=nil)
  @Type = type
  @Scale = scale
  @CenterCut = centercut
  @Blur = blur
end

Instance Attribute Details

#BlurObject

<li>Scale : 图片缩略处理;</li> <li>CenterCut : 图片裁剪处理;</li> <li>Blur : 图片模糊处理。</li>

Parameters:

  • Type:

    图片处理类型。可选类型有:

  • Scale:

    图片缩略处理,仅当 Type 为 Scale 时有效。

  • CenterCut:

    图片裁剪处理,仅当 Type 为 CenterCut 时有效。

  • Blur:

    图片模糊处理,仅当 Type 为 Blur 时有效。



15576
15577
15578
# File 'lib/v20180717/models.rb', line 15576

def Blur
  @Blur
end

#CenterCutObject

<li>Scale : 图片缩略处理;</li> <li>CenterCut : 图片裁剪处理;</li> <li>Blur : 图片模糊处理。</li>

Parameters:

  • Type:

    图片处理类型。可选类型有:

  • Scale:

    图片缩略处理,仅当 Type 为 Scale 时有效。

  • CenterCut:

    图片裁剪处理,仅当 Type 为 CenterCut 时有效。

  • Blur:

    图片模糊处理,仅当 Type 为 Blur 时有效。



15576
15577
15578
# File 'lib/v20180717/models.rb', line 15576

def CenterCut
  @CenterCut
end

#ScaleObject

<li>Scale : 图片缩略处理;</li> <li>CenterCut : 图片裁剪处理;</li> <li>Blur : 图片模糊处理。</li>

Parameters:

  • Type:

    图片处理类型。可选类型有:

  • Scale:

    图片缩略处理,仅当 Type 为 Scale 时有效。

  • CenterCut:

    图片裁剪处理,仅当 Type 为 CenterCut 时有效。

  • Blur:

    图片模糊处理,仅当 Type 为 Blur 时有效。



15576
15577
15578
# File 'lib/v20180717/models.rb', line 15576

def Scale
  @Scale
end

#TypeObject

<li>Scale : 图片缩略处理;</li> <li>CenterCut : 图片裁剪处理;</li> <li>Blur : 图片模糊处理。</li>

Parameters:

  • Type:

    图片处理类型。可选类型有:

  • Scale:

    图片缩略处理,仅当 Type 为 Scale 时有效。

  • CenterCut:

    图片裁剪处理,仅当 Type 为 CenterCut 时有效。

  • Blur:

    图片模糊处理,仅当 Type 为 Blur 时有效。



15576
15577
15578
# File 'lib/v20180717/models.rb', line 15576

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
# File 'lib/v20180717/models.rb', line 15585

def deserialize(params)
  @Type = params['Type']
  unless params['Scale'].nil?
    @Scale = ImageScale.new
    @Scale.deserialize(params['Scale'])
  end
  unless params['CenterCut'].nil?
    @CenterCut = ImageCenterCut.new
    @CenterCut.deserialize(params['CenterCut'])
  end
  unless params['Blur'].nil?
    @Blur = ImageBlur.new
    @Blur.deserialize(params['Blur'])
  end
end