diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-03-03 21:44:11 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-03-03 21:44:11 +0200 |
| commit | 96efb4716d16ab7dab67ead42f27b871b81d4111 (patch) | |
| tree | 75957fe1b01d2f370b3d0dda8b53662b76cc1d62 /Software/Visual_Studio/Embroidery/libEmbroideryTest | |
| parent | 874760d794af99938deec7120acba26c03d420c5 (diff) | |
| download | Tango-96efb4716d16ab7dab67ead42f27b871b81d4111.tar.gz Tango-96efb4716d16ab7dab67ead42f27b871b81d4111.zip | |
Implemented Embroidery Editor.
Diffstat (limited to 'Software/Visual_Studio/Embroidery/libEmbroideryTest')
| -rw-r--r-- | Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp b/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp index e9c90ebda..7e1f5b01f 100644 --- a/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp +++ b/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp @@ -12,7 +12,7 @@ int main() { EmbPattern* p = embPattern_create(); - int ok = embPattern_read(p, "C:\\Users\\Roy\\Desktop\\RGB_Strips.pes"); + int ok = embPattern_read(p, "C:\\Users\\Roy\\Desktop\\abc.dst"); if (ok) { @@ -34,20 +34,20 @@ int main() EmbStitchList* sList = p->stitchList; - //while (sList) - //{ - // EmbStitch s = sList->stitch; - // //cout << " X: " << setprecision(3) << s.xx << " Y: " << setprecision(3) << s.yy << " Color Index: " << s.color << endl; - - // printf("\"%f\",\"%f\"\n", s.xx, s.yy); - // sList = sList->next; - //} - - for (size_t i = 0; i < 1000; i++) + while (sList) { - EmbStitch stitch = embStitchList_getAt(p->stitchList, i); - cout << i << " X: " << setprecision(3) << stitch.xx << " Y: " << setprecision(3) << stitch.yy << " Color Index: " << stitch.color << endl; + EmbStitch s = sList->stitch; + //cout << " X: " << setprecision(3) << s.xx << " Y: " << setprecision(3) << s.yy << " Color Index: " << s.color << endl; + + printf("\"%f\",\"%f\"\n", s.xx, s.yy); + sList = sList->next; } + + //for (size_t i = 0; i < 1000; i++) + //{ + // EmbStitch stitch = embStitchList_getAt(p->stitchList, i); + // cout << i << " X: " << setprecision(3) << stitch.xx << " Y: " << setprecision(3) << stitch.yy << " Color Index: " << stitch.color << endl; + //} } else { |
