diff options
Diffstat (limited to 'Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp')
| -rw-r--r-- | Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp b/Software/Visual_Studio/Embroidery/libEmbroideryTest/libEmbroideryTest.cpp index 64c581400..e9c90ebda 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:\\Tests\\Blueangel.pes"); + int ok = embPattern_read(p, "C:\\Users\\Roy\\Desktop\\RGB_Strips.pes"); if (ok) { @@ -25,15 +25,27 @@ int main() for (size_t i = 0; i < t_count; i++) { - cout << "R: " << (int)p->threadList[i].thread.color.r << ", "; - cout << "G: " << (int)p->threadList[i].thread.color.g << ", "; - cout << "B: " << (int)p->threadList[i].thread.color.b << endl; + EmbThread t = embThreadList_getAt(p->threadList, i); + + cout << "R: " << (int)t.color.r << ", "; + cout << "G: " << (int)t.color.g << ", "; + cout << "B: " << (int)t.color.b << endl; } - for (size_t i = 0; i < 100; i++) + 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++) { - - EmbStitch stitch = p->stitchList[i].stitch; + EmbStitch stitch = embStitchList_getAt(p->stitchList, i); cout << i << " X: " << setprecision(3) << stitch.xx << " Y: " << setprecision(3) << stitch.yy << " Color Index: " << stitch.color << endl; } } |
