有痕示例01
有痕示例01Json格式:
[
{
"type": 6,
"sX": 119,
"sY": 141,
"text": "",
"scale": 1,
"eX": 882,
"eY": 136
},
{
"type": 4,
"sX": 628,
"sY": 64,
"text": "2",
"scale": 1
},
{
"type": 5,
"sX": 701,
"sY": 212,
"text": "",
"scale": 1,
"eX": 957,
"eY": 211
},
{
"type": 5,
"sX": 67,
"sY": 287,
"text": "",
"scale": 1,
"eX": 721,
"eY": 287
},
{
"type": 4,
"sX": 715,
"sY": 230,
"text": "1",
"scale": 1
},
{
"type": 7,
"sX": 698,
"sY": 361,
"text": "建议分为5个步骤进行描述",
"scale": 1
}
]
有痕示例02
有痕示例02Json格式:
[
{
"type": 2,
"sX": 155,
"sY": 97,
"text": "2",
"scale": 1
},
{
"type": 2,
"sX": 98,
"sY": 255,
"text": "2",
"scale": 1
},
{
"type": 3,
"sX": 890,
"sY": 290,
"text": "",
"scale": 1
},
{
"type": 1,
"sX": 270,
"sY": 94,
"text": "2",
"scale": 1
},
{
"type": 1,
"sX": 237,
"sY": 264,
"text": "3",
"scale": 1
}
]
Annotation对象
namespace Tdf.Utils.AnnotationPic
{
public class Annotation
{
/// <summary>
/// 1 分数 2打钩 3打叉 4打钩+文字 5直线 6波浪线 7文字
/// </summary>
public int Type { get; set; }
/// <summary>
/// Start X
/// </summary>
public int Sx { get; set; }
/// <summary>
/// Start Y
/// </summary>
public int Sy { get; set; }
/// <summary>
/// 文字
/// </summary>
public string Text { get; set; }
/// <summary>
/// 缩放比例
/// </summary>
public float Scale { get; set; }
/// <summary>
/// End X
/// </summary>
public int? Ex { get; set; }
/// <summary>
/// End Y
/// </summary>
public int? Ey { get; set; }
}
}
Type :1 分数 2打钩 3打叉 4打钩+文字 5直线 6波浪线 7文字
网友评论