Reformer.Ems 图片有痕实现原理

有痕示例01

Reformer.Ems 图片有痕实现原理_第1张图片
有痕示例01

Json格式:

[
    {
        "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

Reformer.Ems 图片有痕实现原理_第2张图片
有痕示例02

Json格式:

[
    {
        "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
    {
        /// 
        /// 1 分数 2打钩 3打叉 4打钩+文字 5直线 6波浪线 7文字
        /// 
        public int Type { get; set; }

        /// 
        /// Start X
        /// 
        public int Sx { get; set; }

        /// 
        /// Start Y
        /// 
        public int Sy { get; set; }

        /// 
        /// 文字
        /// 
        public string Text { get; set; }

        /// 
        /// 缩放比例
        /// 
        public float Scale { get; set; }

        /// 
        /// End X
        /// 
        public int? Ex { get; set; }

        /// 
        /// End Y
        /// 
        public int? Ey { get; set; }
    }
}

Type :1 分数 2打钩 3打叉 4打钩+文字 5直线 6波浪线 7文字

你可能感兴趣的:(Reformer.Ems 图片有痕实现原理)