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


On 22 Dec 2019, at 6:23 pm, Chris Sherlock <chris.sherlock79@gmail.com> wrote:

Hello all, 

I have been looking into getting hatching working for EMF+ processing. I can see we already have 
some hatching code that draws diagonal lines, but for the life of me I’m not sure how to extend 
this to other forms of hatching like dithering (yes, EMF+ requires this). 

Can anyone give me a rundown how the drawinglayer hatching code works so I can extend it?

Other example hatches I need to implement, incidentally, can be found here:

https://bootes.blob.core.windows.net/article-11/winforms-hatch-brushes.jpg 
<https://bootes.blob.core.windows.net/article-11/winforms-hatch-brushes.jpg> 

Chris

I have submitted a patch that implements the hatching lines that we already have:

https://gerrit.libreoffice.org/#/c/core/+/85796/ <https://gerrit.libreoffice.org/#/c/core/+/85796/> 

We can easily implement horizontal, vertical, forward and backward diagonal, grid and cross 
hatching. Looking at the results, I think my hatching is going outside of the border by 1 pixel, 
any ideas on how to fix this would be greatly appreciated. 

In terms of implementing hatching for the other styles, if anyone has any ideas on how to do this, 
it would be greatly appreciated also. 

Chris

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.