jsignature 现在将图片数据传入服务端,不知道如何解析
[{"x":[325,317,311,307,311,322,341,368,400,434,468,501,528,550,563,570,572,574,574,569,559,545,521,490,454,415,380,353,336,326,331,342,360,390,428,469,509,551,591,630,663,688,704,716,726,732,736,736,739,742,746,765,790,818,847,875,902,921,936,947,955,960,965,959,950,937,921,899,874,854,842,845,858,870,884,898,909,916,922,925],"y":[50,50,52,57,66,70,77,83,88,95,100,109,117,124,130,134,137,141,148,153,159,163,169,174,176,178,178,178,177,175,169,164,154,144,133,122,113,106,101,97,95,94,94,94,94,94,95,100,108,110,111,114,115,117,117,117,117,117,117,116,113,113,111,109,109,109,109,109,108,108,106,104,104,104,104,104,104,104,104,106]}]
格式如上,这个用C#如何解析呢?
这不就是一堆有序的坐标点么?你把它们依次解析为一堆Point就可以了。
命名空间.类名.方法 谢谢
@凡图: System.Drawing.Point,构造函数一个x一个y
@Daniel Cai: 我构造它,怎么生成图片呢?没有解决的正确方法具体代码不用回复,谢谢