<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Chris,<br>
</p>
Am 23.08.2017 um 03:58 schrieb Chris Sherlock:<br>
<blockquote type="cite"
cite="mid:CAKnN5hW3Cq8osKsMeBy+xk54zipy=g_-A-23kyVMTByMFWn_Vw@mail.gmail.com">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Aug 22, 2017 at 11:30 PM,
Armin Le Grand <span dir="ltr"><<a
href="mailto:armin_le_grand@me.com" target="_blank"
moz-do-not-send="true">armin_le_grand@me.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hiho,<br>
<br>
here are some cleanup start points:<br>
<br>
- m_bUseCanvas: no longer needed, no longetr interesting
from outside Metafile<br>
- ImplPlayWithRenderer: should be removed. Adding a
warning in Metafile::Play for comments with GDIPLUS which
guides to use primitive renderer for better handling would
be nice to add<br>
- MtfRenderer: The hard part.
com\sun\star\rendering\MtfRend<wbr>erer.idl and
com\sun\star\rendering\MtfRend<wbr>erer.idl and their
should be removed. It's not an official API and should be
safe to remove<br>
- there may be more as consequence of these...as always
;-)<br>
<br>
Of course some UnitTests would be nice, too, best with
EMF+ test data files which make use of the new stuff.<br>
<br>
As Thorsten already stated: Help much appreciated!<br>
<br>
Regards,<br>
<br>
Armin (alg)</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>How hard would it be to move the workbench example in
VCL to use this?
<div><br>
</div>
<div><a
href="https://cgit.freedesktop.org/libreoffice/core/tree/vcl/workben/mtfdemo.cxx"
moz-do-not-send="true">https://cgit.freedesktop.org/libreoffice/core/tree/vcl/workben/mtfdemo.cxx</a></div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Not too hard - indirectly it will partially use it already, it will
read the metafile (<code>ReadWindowMetafile), but still paint it as
metafile using vcl (</code><code>maMtf.Play).<br>
</code><code></code>Instead you may use a Graphic (which you
construct using the Metafile)/GraphicObject (which you construct
using the Graphic), and something like in
paintGraphicUsingPrimitivesHelper/paintUsingPrimitivesHelper like in
sw, but only the parts that construct the
drawinglayer::primitive2d::GraphicPrimitive2D.<br>
You may also directly use a
drawinglayer::primitive2d::MetafilePrimitive2D, then you only need
the transformation and the Metafile, and a
drawinglayer::processor2d::BaseProcessor2D (best is to use
drawinglayer::processor2d::createProcessor2DFromOutputDevice, that
will do all stuff for you).<br>
<br>
HTH!<br>
Regards, Armin<br>
<pre class="moz-signature" cols="72">--
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)</pre>
</body>
</html>