B2DRange

Miklos Vajna vmiklos at collabora.com
Mon Dec 10 09:00:08 UTC 2018


Hi Chris,

On Mon, Dec 10, 2018 at 04:49:29AM +1100, Chris Sherlock <chris.sherlock79 at gmail.com> wrote:
> How does one apply a translation matrix to a B2DRange? I can see a
> transform() function, but that’s a matrix multiplication - I want to
> move the 2d range from left or right, and top or bottom.

Did you try creating a basegfx::B2DHomMatrix, calling translate() on it,
then using that as an argument on transform()?

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20181210/179c06d9/attachment.sig>


More information about the LibreOffice mailing list