|
From: strk <st...@ke...> - 2007-02-16 13:44:07
|
I've seen swftocxx work for the firt time :) No compile-time errors, and no runtime errors. Anyway, visual result is wrong, and seems related to TWIPS or PIXELS (or scale in general). Here is an excerpt: ... m->setDimension(550.000000, 400.000000); ... character1->movePenTo(1380, 0); character1->drawCurve(0, 572, -404, 404); character1->drawCurve(-404, 404, -572, 0); character1->drawCurve(-572, 0, -404, -404); character1->drawCurve(-404, -404, 0, -572); character1->drawCurve(0, -572, 404, -404); character1->drawCurve(404, -404, 572, 0); character1->drawCurve(572, 0, 404, 404); character1->drawCurve(404, 404, 0, 572); You can see that coordinates used in drawing seem to be in TWIPS, while we need PIXELS to work with mingpp.h. Better yet, we'd set a global scale to ensure we talkg TWIPS, so we don't miss any information found in the SWF, but I can't find a call for Ming_setScale() with the C++ wrapper. Anyone ? --strk; |