Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

how to write inclined text with degree e.g.45

Help
2012-08-25
2013-05-28
  • I want to write a word inclined with e.g. 45 degree . How I can do this?

     
  • I also found the solution for this. To have the complete source code get the Watermark example.

    float halfSqrt2 = (float) (0.5 * Math.sqrt(2));
    creator.textSetTransform(halfSqrt2, halfSqrt2, -halfSqrt2, halfSqrt2,
            200, 300);

     
  • mtraut
    mtraut
    2012-08-30

    …back from holidays.

    Thank you for sharing your solution