Quoting Jaideep Chadha <[EMAIL PROTECTED]>:What do the six values in the transformation matrix represent?It's all explained in the tutorial: http://www.lowagie.com/iText/tutorial/ch10.html#templates
Btw, if someone else has the same problem as me, to rotate an object on the upper left corner instead the usual lower left corner, this might help:
double a2 = angle*DEG_2_RAD; // convert into radians float xa = (float)Math.sin(a2)*height; float ya = height-(float)Math.cos(a2)*height;
Transfermatrix would be:
((float)Math.cos(a2), (float)Math.sin(a2),(float)-Math.sin(a2), (float)Math.cos(a2) ,x + xa, y + ya)
regards,
Michael
-- Michael Glauche, Dipl. Inform. Connection GmbH [EMAIL PROTECTED] http://www.connection-net.de/ pgp key: http://www.connection-net.de/~mglauche/mglauche.asc
"The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us." -- Calvin & Hobbes
------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
