Class: TencentCloud::Vod::V20180717::ImageCenterCut
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vod::V20180717::ImageCenterCut
- Defined in:
- lib/v20180717/models.rb
Overview
图片中心裁剪处理。
Instance Attribute Summary collapse
-
#Height ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>.
-
#Radius ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>.
-
#Type ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>.
-
#Width ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, width = nil, height = nil, radius = nil) ⇒ ImageCenterCut
constructor
A new instance of ImageCenterCut.
Constructor Details
#initialize(type = nil, width = nil, height = nil, radius = nil) ⇒ ImageCenterCut
Returns a new instance of ImageCenterCut.
15528 15529 15530 15531 15532 15533 |
# File 'lib/v20180717/models.rb', line 15528 def initialize(type=nil, width=nil, height=nil, radius=nil) @Type = type @Width = width @Height = height @Radius = radius end |
Instance Attribute Details
#Height ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>
15526 15527 15528 |
# File 'lib/v20180717/models.rb', line 15526 def Height @Height end |
#Radius ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>
15526 15527 15528 |
# File 'lib/v20180717/models.rb', line 15526 def Radius @Radius end |
#Type ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>
15526 15527 15528 |
# File 'lib/v20180717/models.rb', line 15526 def Type @Type end |
#Width ⇒ Object
<li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li>
15526 15527 15528 |
# File 'lib/v20180717/models.rb', line 15526 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
15535 15536 15537 15538 15539 15540 |
# File 'lib/v20180717/models.rb', line 15535 def deserialize(params) @Type = params['Type'] @Width = params['Width'] @Height = params['Height'] @Radius = params['Radius'] end |