Date: prev next · Thread: first prev next last
April 2013 Archives by date, by thread · List index


Hi Astron,

Stefan Knorr schrieb:
Hi Regina, all,

On 5 April 2013 11:56, Regina Henschel <rb.henschel@t-online.de> wrote:
I'm not sure, whether a 90 degree rotation is easier. There is no problem to
rotate the image. That can already be easily done with a simple matrix
transformation. But you need to change the area into which the image is
drawn. And that problem exists for a 90 degree rotation as well. You cannot
rotate the image itself and insert a new rotated one, because the image
might be linked and not embedded. Do you know, how that would be solved for
a 90 degree rotation?

So, essentially, you are saying it is easy as long as one is using square images
but not otherwise?

The rotation itself is not the problem. You can do it with a simple macro. Select a picture and then try this macro

sub workOnWriterTextGraphic
dim oDocument as variant: oDocument = ThisComponent
dim oCurrentSelection as variant: oCurrentSelection = oDocument.CurrentSelection if Not(oCurrentSelection.supportsService("com.sun.star.text.TextGraphicObject")) then
        msgbox("Select a picture.")
        exit sub
end if
oCurrentSelection.GraphicRotation=300
end sub

It rotates around a corner. If you want rotation around the center, you will need some additional steps and calculations. That is what I called a "matrix transformation".

So, no I don't know, but Michael came up with this at the call ... I am
certainly not technical enough to answer that. What works however is rotating
something in Impress/Draw and then copying the image over – so I guess there is
a rotation property somewhere, no..? (Or is that the transformation matrices you
were talking about?)

You cannot compare that. A picture in Impress/Draw, that is pasted from there into Writer, is technically a total different object than a picture directly inserted into Writer. They have a different sets of properties and available methods.

Kind regards
Regina


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.