Class: TencentCloud::Mps::V20190612::ImageWatermarkInput
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ImageWatermarkInput
- Defined in:
- lib/v20190612/models.rb
Overview
图片水印模板输入参数
Instance Attribute Summary collapse
-
#Height ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。
当宽高都不填或者为0时,默认为 10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#ImageContent ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。
当宽高都不填或者为0时,默认为 10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#RepeatType ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。
当宽高都不填或者为0时,默认为 10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#Width ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。
当宽高都不填或者为0时,默认为 10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imagecontent = nil, width = nil, height = nil, repeattype = nil) ⇒ ImageWatermarkInput
constructor
A new instance of ImageWatermarkInput.
Constructor Details
#initialize(imagecontent = nil, width = nil, height = nil, repeattype = nil) ⇒ ImageWatermarkInput
Returns a new instance of ImageWatermarkInput.
18314 18315 18316 18317 18318 18319 |
# File 'lib/v20190612/models.rb', line 18314 def initialize(imagecontent=nil, width=nil, height=nil, repeattype=nil) @ImageContent = imagecontent @Width = width @Height = height @RepeatType = repeattype end |
Instance Attribute Details
#Height ⇒ Object
18312 18313 18314 |
# File 'lib/v20190612/models.rb', line 18312 def Height @Height end |
#ImageContent ⇒ Object
18312 18313 18314 |
# File 'lib/v20190612/models.rb', line 18312 def ImageContent @ImageContent end |
#RepeatType ⇒ Object
18312 18313 18314 |
# File 'lib/v20190612/models.rb', line 18312 def RepeatType @RepeatType end |
#Width ⇒ Object
18312 18313 18314 |
# File 'lib/v20190612/models.rb', line 18312 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
18321 18322 18323 18324 18325 18326 |
# File 'lib/v20190612/models.rb', line 18321 def deserialize(params) @ImageContent = params['ImageContent'] @Width = params['Width'] @Height = params['Height'] @RepeatType = params['RepeatType'] end |