Class: TencentCloud::Mps::V20190612::RawImageWatermarkInput
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::RawImageWatermarkInput
- Defined in:
- lib/v20190612/models.rb
Overview
图片水印模板输入参数
Instance Attribute Summary collapse
-
#Height ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
默认值:10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#ImageContent ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
默认值:10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#RepeatType ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
默认值:10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
. -
#Width ⇒ Object
- 当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;
- 当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。
默认值:10%。- 当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;
- 当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。
默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。- once:动态水印播放完后,不再出现;
- repeat_last_frame:水印播放完后,停留在最后一帧;
- repeat:水印循环播放,直到视频结束(默认值)。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imagecontent = nil, width = nil, height = nil, repeattype = nil) ⇒ RawImageWatermarkInput
constructor
A new instance of RawImageWatermarkInput.
Constructor Details
#initialize(imagecontent = nil, width = nil, height = nil, repeattype = nil) ⇒ RawImageWatermarkInput
Returns a new instance of RawImageWatermarkInput.
25755 25756 25757 25758 25759 25760 |
# File 'lib/v20190612/models.rb', line 25755 def initialize(imagecontent=nil, width=nil, height=nil, repeattype=nil) @ImageContent = imagecontent @Width = width @Height = height @RepeatType = repeattype end |
Instance Attribute Details
#Height ⇒ Object
25753 25754 25755 |
# File 'lib/v20190612/models.rb', line 25753 def Height @Height end |
#ImageContent ⇒ Object
25753 25754 25755 |
# File 'lib/v20190612/models.rb', line 25753 def ImageContent @ImageContent end |
#RepeatType ⇒ Object
25753 25754 25755 |
# File 'lib/v20190612/models.rb', line 25753 def RepeatType @RepeatType end |
#Width ⇒ Object
25753 25754 25755 |
# File 'lib/v20190612/models.rb', line 25753 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
25762 25763 25764 25765 25766 25767 25768 25769 25770 |
# File 'lib/v20190612/models.rb', line 25762 def deserialize(params) unless params['ImageContent'].nil? @ImageContent = MediaInputInfo.new @ImageContent.deserialize(params['ImageContent']) end @Width = params['Width'] @Height = params['Height'] @RepeatType = params['RepeatType'] end |