Interactive Ink

Answered

save an image from the stroke data

I wanted to save the input sent for conversion to an image. can we do that from the stroke info ?

image


"{ "type": "Text", "label": "Boss", "words": [ { "label": "Boss", "candidates": [ "Boss", "Bosse", "boss", "Bass", "Bossi" ], "range": "[0:0,0:211$]", "strokes": [ { "timestamp": "2018-04-29 10:40:54.712000", "X": [ 25.664583, 25.664583, 26.193748, 26.458332, 27.252083, 28.045832, 28.839582, 29.36875, 29.36875, 29.36875, 29.36875, 29.104166, 29.104166, 29.104166, 28.839582, 28.574999, 27.78125, 26.722916, 26.458332, 25.4, 25.135416, 24.870832, 24.870832, 24.870832, 24.870832, 24.870832, 24.870832, 25.4, 26.193748, 27.516666, 29.104166, 30.427082, 32.543751, 34.131248, 36.247917, 37.041664, 37.835415, 38.099998, 38.629166, 38.629166, 37.835415, 36.247917, 35.189583, 32.808331, 32.014584, 33.072914, 34.131248, 37.570831, 38.364582, 39.952084, 41.010414, 42.333332, 43.65625, 44.449997, 44.714581, 44.449997, 43.920834, 42.862499, 40.745831, 39.158333, 37.570831, 35.189583, 33.337498, 30.427082, 28.839582, 27.78125, 26.722916, 24.077084, 22.489582, 21.43125, 20.902082, 21.695833, 22.754166, 23.8125, 24.870832, 25.664583, 26.722916, 27.78125, 28.839582, 30.162498, 31.75, 34.131248, 36.247917, 37.306248, 39.158333, 40.216667, 41.274998, 42.068748, 42.862499, 44.714581, 45.508331, 46.037498, 46.831249, 47.625, 48.418747, 48.683331, 48.683331, 48.683331, 48.683331, 48.683331, 48.683331, 48.683331, 48.683331, 48.947914, 49.212498, 49.741665, 50.799999, 51.858334, 52.652081, 53.445831, 55.827084, 57.414581, 58.737499, 60.060413, 61.118748, 61.383331, 61.383331, 60.589581, 60.324997, 59.266666, 57.943748, 56.091663, 55.033333, 53.445831, 52.387497, 51.329166, 50.270832, 49.741665, 49.477081, 49.741665, 50.270832, 51.064583, 53.181248, 55.827084, 58.208332, 61.383331, 62.970833, 64.558334, 67.204163, 67.997917, 68.262497, 68.527084, 68.527084, 67.73333, 66.939583, 66.674995, 66.939583, 68.262497, 69.056252, 71.4375, 73.289581, 75.40625, 76.729164, 76.729164, 76.464584, 75.67083, 74.877083, 74.083328, 71.70208, 68.262497, 67.204163, 65.616661, 64.822914, 64.558334, 65.616661, 66.410416, 67.204163, 68.791664, 71.172913, 72.231247, 74.877083, 77.522911, 80.168747, 81.756248, 82.285416, 82.285416, 82.285416, 81.756248, 81.491661, 80.697914, 80.433334, 81.491661, 82.285416, 83.60833, 85.195831, 88.106247, 89.429161, 90.222916, 90.752083, 90.752083, 90.222916, 89.429161, 87.3125, 85.195831, 84.137497, 82.549995, 81.227081, 79.904167, 79.110413, 80.433334, 82.020828, 82.814583, 84.137497, 86.254166, 88.635414, 89.693748, 91.016663, 93.662498, 95.51458, 96.308334, 96.837494, 97.631248 ], "Y": [ 12.170833, 13.229166, 14.552083, 15.610416, 19.314583, 24.077084, 30.956249, 40.216667, 44.449997, 47.095833, 48.154167, 47.095833, 45.243748, 43.391666, 40.745831, 38.629166, 35.454166, 31.220833, 29.633333, 26.722916, 24.870832, 23.8125, 21.960417, 20.637499, 19.84375, 19.049999, 18.25625, 16.668749, 15.875, 15.081249, 14.287499, 14.022916, 13.758333, 13.758333, 14.287499, 15.081249, 16.139584, 17.197916, 20.108334, 21.960417, 24.077084, 26.722916, 28.045832, 29.897915, 30.427082, 29.633333, 29.104166, 29.104166, 29.104166, 29.36875, 29.897915, 31.220833, 33.072914, 34.660416, 37.570831, 38.893749, 39.6875, 41.010414, 42.333332, 43.127083, 43.391666, 43.391666, 43.127083, 42.862499, 42.333332, 41.804165, 41.010414, 39.6875, 38.364582, 37.306248, 36.512501, 36.777081, 37.835415, 39.158333, 39.952084, 40.481251, 41.010414, 41.539581, 42.068748, 42.597916, 42.862499, 43.127083, 43.65625, 43.65625, 43.65625, 43.391666, 43.127083, 42.862499, 42.333332, 41.010414, 40.481251, 39.6875, 38.364582, 37.041664, 34.924999, 33.602081, 31.220833, 30.162498, 28.310415, 27.252083, 28.310415, 29.36875, 31.485416, 33.072914, 35.189583, 36.777081, 38.893749, 39.952084, 40.481251, 40.745831, 40.481251, 39.952084, 39.158333, 37.570831, 35.983334, 33.866665, 32.543751, 30.691666, 29.897915, 28.310415, 26.987499, 26.193748, 25.929167, 25.929167, 26.193748, 26.458332, 26.987499, 27.78125, 28.574999, 29.897915, 30.691666, 30.956249, 31.75, 31.75, 31.485416, 30.691666, 29.897915, 28.839582, 26.193748, 24.606249, 23.018749, 21.960417, 20.902082, 21.695833, 22.754166, 23.8125, 25.664583, 26.987499, 27.516666, 28.574999, 29.36875, 30.691666, 32.014584, 32.808331, 33.602081, 34.660416, 35.454166, 35.71875, 36.247917, 35.983334, 35.983334, 35.189583, 34.660416, 33.866665, 34.395832, 34.924999, 35.189583, 35.454166, 35.189583, 34.924999, 34.131248, 32.543751, 30.162498, 27.78125, 25.135416, 23.018749, 21.43125, 19.84375, 18.785416, 19.84375, 21.166666, 22.489582, 23.018749, 23.547916, 24.341665, 25.664583, 26.193748, 26.987499, 27.78125, 28.839582, 29.633333, 30.162498, 31.485416, 32.543751, 32.808331, 32.808331, 32.808331, 32.543751, 32.279167, 32.808331, 33.337498, 33.602081, 33.866665, 33.866665, 33.072914, 32.543751, 31.75, 29.36875, 27.252083, 26.193748, 25.135416, 24.341665 ], "F": [ 0.5, 0.80000001, 0.75311285, 0.71852648, 0.62161106, 0.57281983, 0.48840931, 0.40790966, 0.60000002, 0.68377221, 0.71451586, 0.71852648, 0.78472787, 0.78472787, 0.68298459, 0.80016035, 0.64829957, 0.59389138, 0.768188, 0.6578787, 0.78587532, 0.71852648, 0.78472787, 0.74367464, 0.6761536, 0.6761536, 0.6761536, 0.77287984, 0.72229666, 0.76302224, 0.77982491, 0.74618471, 0.80016035, 0.76652259, 0.80248946, 0.72229666, 0.74367464, 0.71852648, 0.66562986, 0.78472787, 0.80606729, 0.65850472, 0.77435064, 0.66233516, 0.70071042, 0.74367464, 0.72921258, 0.63944489, 0.6761536, 0.768188, 0.72921258, 0.78587532, 0.80674112, 0.77982491, 0.6676544, 0.74618471, 0.70071042, 0.77435064, 0.81546116, 0.77982491, 0.768188, 0.81111205, 0.78587532, 0.6676544, 0.77287984, 0.72921258, 0.74367464, 0.66562986, 0.79681462, 0.75927329, 0.70071042, 0.68318993, 0.75927329, 0.77435064, 0.74367464, 0.70071042, 0.72921258, 0.72921258, 0.72921258, 0.75311285, 0.768188, 0.81169087, 0.80248946, 0.71451586, 0.78472787, 0.71852648, 0.71852648, 0.68318993, 0.70071042, 0.80674112, 0.70071042, 0.70071042, 0.76302224, 0.76302224, 0.80606729, 0.74618471, 0.81111205, 0.71451586, 0.78472787, 0.71451586, 0.71451586, 0.71451586, 0.79935074, 0.768188, 0.80016035, 0.77287984, 0.81052244, 0.75927329, 0.70071042, 0.68318993, 0.81169087, 0.77287984, 0.76302224, 0.79681462, 0.78808492, 0.80016035, 0.74367464, 0.79410458, 0.68318993, 0.78808492, 0.78587532, 0.79410458, 0.71852648, 0.76652259, 0.71852648, 0.71852648, 0.72921258, 0.70071042, 0.68318993, 0.74618471, 0.70071042, 0.68318993, 0.80606729, 0.68377221, 0.81169087, 0.64829957, 0.77982491, 0.78808492, 0.62393969, 0.77982491, 0.768188, 0.71852648, 0.71451586, 0.72229666, 0.74367464, 0.71852648, 0.78587532, 0.78587532, 0.70071042, 0.81923801, 0.79410458, 0.81546116, 0.78587532, 0.6761536, 0.68318993, 0.74367464, 0.72229666, 0.68318993, 0.81336504, 0.63891268, 0.71451586, 0.77982491, 0.70071042, 0.68318993, 0.72921258, 0.70071042, 0.68318993, 0.768188, 0.81169087, 0.71852648, 0.67688537, 0.65850472, 0.63320816, 0.67111319, 0.68065631, 0.79935074, 0.76652259, 0.77287984, 0.71852648, 0.74367464, 0.74618471, 0.77435064, 0.70071042, 0.75311285, 0.77982491, 0.65239322, 0.75311285, 0.72229666, 0.70071042, 0.71451586, 0.70071042, 0.70071042, 0.81546116, 0.81052244, 0.71852648, 0.76652259, 0.74367464, 0.74618471, 0.68318993, 0.75311285, 0.77287984, 0.68318993, 0.74618471, 0.79935074, 0.81596237, 0.72921258, 0.76302224, 0.63320816, 0.67396098, 0.74367464, 0.72921258, 0.72229666 ], "T": [ 0, 34, 51, 68, 85, 101, 118, 135, 151, 168, 184, 268, 301, 317, 334, 351, 368, 384, 400, 418, 435, 452, 468, 484, 502, 519, 536, 568, 603, 635, 652, 670, 686, 701, 720, 735, 752, 768, 785, 802, 819, 836, 851, 870, 885, 985, 1001, 1018, 1035, 1051, 1068, 1084, 1118, 1134, 1168, 1185, 1202, 1217, 1234, 1251, 1268, 1284, 1301, 1319, 1335, 1352, 1369, 1384, 1402, 1418, 1452, 1669, 1685, 1719, 1751, 1968, 1985, 2001, 2018, 2034, 2051, 2068, 2085, 2101, 2119, 2134, 2152, 2168, 2185, 2218, 2235, 2252, 2268, 2285, 2302, 2318, 2335, 2352, 2369, 2385, 2485, 2502, 2519, 2536, 2553, 2568, 2585, 2602, 2619, 2635, 2652, 2669, 2685, 2702, 2718, 2735, 2752, 2769, 2785, 2801, 2819, 2853, 2869, 2886, 2903, 2919, 2952, 2969, 3002, 3035, 3051, 3069, 3085, 3101, 3119, 3135, 3152, 3167, 3185, 3202, 3218, 3235, 3251, 3335, 3352, 3368, 3401, 3418, 3434, 3452, 3468, 3485, 3519, 3536, 3552, 3570, 3586, 3603, 3619, 3635, 3653, 3670, 3686, 3719, 3786, 3803, 3820, 3836, 3853, 3870, 3887, 3902, 3919, 3936, 3953, 3970, 3986, 4001, 4019, 4101, 4135, 4168, 4185, 4202, 4217, 4235, 4252, 4268, 4302, 4335, 4352, 4369, 4385, 4402, 4418, 4435, 4451, 4468, 4485, 4619, 4652, 4669, 4685, 4702, 4719, 4736, 4752, 4769, 4786, 4802, 4819, 4835 ], "id": "000000000100a701ff00" } ] } ] }"



Best Answer

Dear rohan verma,

We're planning to add the capability to export the content of a Part to PNG or JPEG in our next release. This should be available in a month or two.

Best regards

Gildas



1 person has this question

Answer

Dear rohan verma,

We're planning to add the capability to export the content of a Part to PNG or JPEG in our next release. This should be available in a month or two.

Best regards

Gildas



3 people like this

isnt it possible to convert the stroke data to an svg ? I dont understand what the X,F and T stand for

Dear Rohan,


thank you for your question.


Currently, the x and y arrays correspond to the coordinates of your ink. You can then use these to create a SVG file.


Regarding the F and T arrays, F stands for Force (pressure of the pen) and T the time machine of your device. You then do not need these to re-create your SVG file.


Let us know if you have further questions.


Best regards,


Olivier

Dear Rohan,


currently, with the new 1.2 release of the iink (delivered on June 19), you can now export as an image.


This should answer your needs.


Feel free to contact us if you have any question.


Best regards,


Olivier

Login or Signup to post a comment