81 lines
3.2 KiB
C#
81 lines
3.2 KiB
C#
|
|
/*
|
|||
|
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an
|
|||
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|||
|
|
* KIND, either express or implied. See the License for the
|
|||
|
|
* specific language governing permissions and limitations
|
|||
|
|
* under the License.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace TencentCloud.Mps.V20190612.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class RawWatermarkParameter : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 水印类型,可选值:
|
|||
|
|
/// <li>image:图片水印。</li>
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Type")]
|
|||
|
|
public string Type{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 原点位置,目前仅支持:
|
|||
|
|
/// <li>TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。</li>
|
|||
|
|
/// 默认值:TopLeft。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CoordinateOrigin")]
|
|||
|
|
public string CoordinateOrigin{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
|
|||
|
|
/// <li>当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;</li>
|
|||
|
|
/// <li>当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。</li>
|
|||
|
|
/// 默认值:0px。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("XPos")]
|
|||
|
|
public string XPos{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
|
|||
|
|
/// <li>当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;</li>
|
|||
|
|
/// <li>当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。</li>
|
|||
|
|
/// 默认值:0px。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("YPos")]
|
|||
|
|
public string YPos{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ImageTemplate")]
|
|||
|
|
public RawImageWatermarkInput ImageTemplate{ get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// For internal usage only. DO NOT USE IT.
|
|||
|
|
/// </summary>
|
|||
|
|
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
|||
|
|
{
|
|||
|
|
this.SetParamSimple(map, prefix + "Type", this.Type);
|
|||
|
|
this.SetParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin);
|
|||
|
|
this.SetParamSimple(map, prefix + "XPos", this.XPos);
|
|||
|
|
this.SetParamSimple(map, prefix + "YPos", this.YPos);
|
|||
|
|
this.SetParamObj(map, prefix + "ImageTemplate.", this.ImageTemplate);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|