Print Page | Close Window

Path definition and drawing

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3010
Printed Date: 05 May 24 at 3:59PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Path definition and drawing
Posted By: mLipok
Subject: Path definition and drawing
Date Posted: 14 Nov 14 at 8:11AM
What does it do ? How to use it ?
Please show me a simple example.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600



Replies:
Posted By: AndrewC
Date Posted: 19 Nov 14 at 10:36AM
Michal,

Here is some simple code showing how to draw a complex path and fill it

            QP.SetOrigin(1);
            QP.SetPageDimensions(1400, 800);

            QP.SetLineColor(0, 1, 0);
            QP.SetFillColor(1, 1, 0);

            QP.StartPath(100.0, 100.0);
            QP.AddLineToPath(400.0, 800.0);
            QP.AddLineToPath(700.0, 100.0);

            QP.MovePath(200.0, 200.0);
            QP.AddLineToPath(400.0, 700.0);
            QP.AddLineToPath(600.0, 200.0);

            QP.DrawPathEvenOdd(2);

            QP.SaveToFile("out.pdf");

Andrew.


Posted By: mLipok
Date Posted: 19 Nov 14 at 10:54AM
Thanks.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: mLipok
Date Posted: 19 Nov 14 at 11:24AM
Wow
I just check it
This is cool feature.
Very useful and nice.
Thanks again.

btw.
I think it is worth to add this example to "Debenu Quick PDF Library 11 Developer Guide.pdf"



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk