Class: TencentCloud::Mps::V20190612::ImageWatermarkTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ImageWatermarkTemplate
- Defined in:
- lib/v20190612/models.rb
Overview
图片水印模板
Instance Attribute Summary collapse
-
#Height ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;
0px:表示 Height 按照 Width 对视频宽度的比例缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束。
. -
#ImageUrl ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;
0px:表示 Height 按照 Width 对视频宽度的比例缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束。
. -
#RepeatType ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;
0px:表示 Height 按照 Width 对视频宽度的比例缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束。
. -
#Width ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;
0px:表示 Height 按照 Width 对视频宽度的比例缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imageurl = nil, width = nil, height = nil, repeattype = nil) ⇒ ImageWatermarkTemplate
constructor
A new instance of ImageWatermarkTemplate.
Constructor Details
#initialize(imageurl = nil, width = nil, height = nil, repeattype = nil) ⇒ ImageWatermarkTemplate
Returns a new instance of ImageWatermarkTemplate.
18385 18386 18387 18388 18389 18390 |
# File 'lib/v20190612/models.rb', line 18385 def initialize(imageurl=nil, width=nil, height=nil, repeattype=nil) @ImageUrl = imageurl @Width = width @Height = height @RepeatType = repeattype end |
Instance Attribute Details
#Height ⇒ Object
18383 18384 18385 |
# File 'lib/v20190612/models.rb', line 18383 def Height @Height end |
#ImageUrl ⇒ Object
18383 18384 18385 |
# File 'lib/v20190612/models.rb', line 18383 def ImageUrl @ImageUrl end |
#RepeatType ⇒ Object
18383 18384 18385 |
# File 'lib/v20190612/models.rb', line 18383 def RepeatType @RepeatType end |
#Width ⇒ Object
18383 18384 18385 |
# File 'lib/v20190612/models.rb', line 18383 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
18392 18393 18394 18395 18396 18397 |
# File 'lib/v20190612/models.rb', line 18392 def deserialize(params) @ImageUrl = params['ImageUrl'] @Width = params['Width'] @Height = params['Height'] @RepeatType = params['RepeatType'] end |