Re: How to rotate a complex object on the canvas



maura.monville@xxxxxxxxx wrote:
Is [rotating canvas items] feasible through any magic Tcl/Tk command ?

No, and even if you're rotating things piecemeal, the particular problem
right now is rotating the text. That's supposed to change by the time
8.5 goes Final, but it's not yet implemented. You should be able to make
a rotated version of the other parts of the key just nicely though; if
you pick your font sizes carefully, it will work "well enough" anyway.

Anyway, to details.

Line and polygon items are trivial to rotate using standard affine
transforms. Rectangle and oval items can be rotated the same way, but
only come out looking right if rotated by 90 degree increments. Anything
that's an image will have to be rotated manually (I think there's some
code that's efficient for 90 degree rotations on the Wiki) anyway;
canvases just see those as an opaque rectangle, rather like an embedded
widget. Text items are really the same, but as mentioned above it should
be possible to fake them in 8.5.

Donal.
.



Relevant Pages

  • Re: iTextSharp Question
    ... either need to rotate the original pages before I put them in the new ... I've played around with Transforms but haven't been able to ... rotated axes rather than the original axes. ... degrees I just had to make the translates the negative of what I would ...
    (comp.text.pdf)
  • Re: iTextSharp Question
    ... either need to rotate the original pages before I put them in the new ... I've played around with Transforms but haven't been able to ... rotated axes rather than the original axes. ... degrees I just had to make the translates the negative of what I would ...
    (comp.text.pdf)
  • iTextSharp Question
    ... I've got an application that needs to take an existing PDF file and ... every other page has to be turned upside down. ... either need to rotate the original pages before I put them in the new ... I've played around with Transforms but haven't been able to ...
    (comp.text.pdf)