aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp')
-rw-r--r--Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp26
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
{