SETMETERLIMIT record
Thorsten Behrens
thb at libreoffice.org
Wed Dec 4 20:26:40 UTC 2019
Hey Chris,
Chris Sherlock wrote:
> Iâm trying to work out how to implement the SETMETERLIMIT EMF record.
>
> Can anyone point me to the spot where we implement bevelling?
>
We discussed on IRC earlier this week, below the log for reference -
did that solve the question for you?
chris_wot: thorsten! hey, can you help me out?
chris_wot: do you know what does line mitering?
chris_wot: is it in basegfx?
quikee[m]: the vcl polyline accepts miter limit as an parameter
thorsten: yep, fwict the method noelgrandin gave does that
***chris_wot relooks at the code
chris_wot: you mean basegfx/source/polygon/b2dlinegeometry.cxx ?
thorsten: yep
chris_wot: thorsten how do I set the miter limit though?
thorsten: chris_wot: see vcl/headless/svpgdi.cxx: // convert miter minimum angle to miter limit for how to convert between the two related ways to express that
chris_wot: legend
chris_wot: thorsten is it the line double fMiterLimit = 1.0 / sin( fMiterMinimumAngle / 2.0);
chris_wot: as I want to do this indepently of the angle
chris_wot: which is what SETMITERLIMIT does...
chris_wot: thorsten something like this - https://www.partnersoftware.com/documentation/MP/v4.5.26/mp_wblegendlinestylemiterlimit.png
thorsten: chris_wot: indeed, that's the concept
Cheers,
-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1032 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20191204/c2e6033a/attachment.sig>
More information about the LibreOffice
mailing list