Class: TencentCloud::Mps::V20190612::CreateImageSpriteTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::CreateImageSpriteTemplateRequest
- Defined in:
- lib/v20190612/models.rb
Overview
CreateImageSpriteTemplate请求参数结构体
Instance Attribute Summary collapse
-
#ColumnCount ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#Comment ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#FillType ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#Format ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#Height ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#Name ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#ResolutionAdaptive ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#RowCount ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#SampleInterval ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#SampleType ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#Width ⇒ Object
- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sampletype = nil, sampleinterval = nil, rowcount = nil, columncount = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, filltype = nil, comment = nil, format = nil) ⇒ CreateImageSpriteTemplateRequest
constructor
A new instance of CreateImageSpriteTemplateRequest.
Constructor Details
#initialize(sampletype = nil, sampleinterval = nil, rowcount = nil, columncount = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, filltype = nil, comment = nil, format = nil) ⇒ CreateImageSpriteTemplateRequest
Returns a new instance of CreateImageSpriteTemplateRequest.
8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 |
# File 'lib/v20190612/models.rb', line 8308 def initialize(sampletype=nil, sampleinterval=nil, rowcount=nil, columncount=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, filltype=nil, comment=nil, format=nil) @SampleType = sampletype @SampleInterval = sampleinterval @RowCount = rowcount @ColumnCount = columncount @Name = name @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @FillType = filltype @Comment = comment @Format = format end |
Instance Attribute Details
#ColumnCount ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def ColumnCount @ColumnCount end |
#Comment ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def Comment @Comment end |
#FillType ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def FillType @FillType end |
#Format ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def Format @Format end |
#Height ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def Height @Height end |
#Name ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def Name @Name end |
#ResolutionAdaptive ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def ResolutionAdaptive @ResolutionAdaptive end |
#RowCount ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def RowCount @RowCount end |
#SampleInterval ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def SampleInterval @SampleInterval end |
#SampleType ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def SampleType @SampleType end |
#Width ⇒ Object
8306 8307 8308 |
# File 'lib/v20190612/models.rb', line 8306 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 |
# File 'lib/v20190612/models.rb', line 8322 def deserialize(params) @SampleType = params['SampleType'] @SampleInterval = params['SampleInterval'] @RowCount = params['RowCount'] @ColumnCount = params['ColumnCount'] @Name = params['Name'] @Width = params['Width'] @Height = params['Height'] @ResolutionAdaptive = params['ResolutionAdaptive'] @FillType = params['FillType'] @Comment = params['Comment'] @Format = params['Format'] end |