#1 2011-06-14 06:55:15

beprecision
Member
Registered: 2011-06-14
Posts: 4

Bezier curves and brush styles in EnumEMFFunc

Hi,

this PDF Engine is very good - many thanks for that. Would it be difficult to implement support for PolyBezier, PolyBezierTo and for hatched brush styles (bsFDiagonal, bsHorizontal, etc.) into the EnumEMFFunc function?

Best regards,

Roman

Offline

#2 2011-06-14 07:59:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

First feature should not be too difficult.
A conversion similar to the EMR_POLYLINE commands could be used.
The CurveTo*() functions could handle it for the PDF generation.

For additional brush styles, the corresponding pdf commands are not existing yet.
Could need more work to implement it.

Offline

#3 2011-06-14 11:51:43

beprecision
Member
Registered: 2011-06-14
Posts: 4

Re: Bezier curves and brush styles in EnumEMFFunc

Thanks for the info.

So, I will try to implement the bezier curves support by myself, but I am aware, that the "brushes" are beyond my PDF knowledge and my time capacity. Is there a chance that you (or someone else) could add this feature ?

Roman

Offline

#4 2011-06-14 14:33:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

My time capacity is a bit restricted also... wink

Perhaps Ondrej already has some ideas about implementing it.
He found out several issues and nice workarounds in the past, and may also need this functionality...

Offline

#5 2011-06-22 09:01:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

I've made some rough update in SynPdf: it should now handles EMR_POLYBEZIER* commands in conversion from meta file content.
See http://synopse.info/fossil/info/25d9980754

But I didn't test it on much content.
Feedback is welcome!

Offline

#6 2011-06-29 09:15:16

reddwarf
Member
Registered: 2010-06-28
Posts: 40
Website

Re: Bezier curves and brush styles in EnumEMFFunc

Sorry, I'm now very happy with SynPDF as it is. Everybody has a restricted time capacity wink

Ondrej

Offline

#7 2011-06-29 09:30:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

reddwarf wrote:

Sorry, I'm now very happy with SynPDF as it is. Everybody has a restricted time capacity wink

Of course! smile

I've added beziers curve capabilities enumeration in the latest version.
Need some deeper testing, certainly.

Offline

#8 2011-07-02 01:08:12

beprecision
Member
Registered: 2011-06-14
Posts: 4

Re: Bezier curves and brush styles in EnumEMFFunc

Many thanks for the update. I will test it and let you know soon.

reddwarf: Sure, I like this engine very much too. :-) But our service, that we used the engine for, needs exactly these two features (hatched brushes and curves) to provide more stylish results. It is a generator of printable tournament brackets ( http://www.be-precision.com/draws/ ), and our users prefer a monochromatic or gray-scale output with hatch rather than colored draws.
In all the cases, thank you for the info.

Roman

Offline

#9 2011-07-02 08:28:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

Did you try the new Bezier Curves?

Offline

#10 2011-07-26 08:09:07

beprecision
Member
Registered: 2011-06-14
Posts: 4

Re: Bezier curves and brush styles in EnumEMFFunc

Hello!

Yes, "polybezier" functions are fully functional for my purposes. Thanks a lot!

Roman

Offline

#11 2011-07-26 09:02:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Bezier curves and brush styles in EnumEMFFunc

Good news.

Happy this part works for you.

Offline

#12 2014-04-01 07:08:31

TDelphiProgrammer
Member
Registered: 2014-04-01
Posts: 2

Re: Bezier curves and brush styles in EnumEMFFunc

Hi everyone,

I used this PDF engine too and I'm glad about functions that are implemented.

But I'm searching for an function/procedure to draw arcs in the PDF, but I only found CurveTo*().
Is this the correct method to draw the required things?

Requirement:
- at least 2 specific points (up to 3 points) are known
- I need a normal round arc without any specific behaviour of the curve             
  ( like 1/4 of a circle, e.g.: http://www.schornsteinmarkt.de/images/p … 2016_0.jpg )

I thought about something like, point A (start of the arc) and point B (end of the arc) and maybe a controlpoint C (on the curve/arc) are given and the curve/arc will be drawn through the points.


Maybe someone can help me with a hint or tip to do this.

Thanks in advance.

Offline

Board footer

Powered by FluxBB