Print Page | Close Window

Rounded Corners for Line Joins

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=3346
Printed Date: 03 May 24 at 4:44AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Rounded Corners for Line Joins
Posted By: rweetch
Subject: Rounded Corners for Line Joins
Date Posted: 17 Jun 16 at 3:18PM
I have set the following
 
  FPDF.SetLineWidth(0.5);
  FPDF.SetLineColorCMYK(0,0,0,0.5);
  FPDF.SetLineDash(0.5,0.5);
  FPDF.SetLineJoin(1);

But when I use the Path methods to draw a box it doesn't use rounded corners.

Any ideas?

Thanks

Russell



Replies:
Posted By: Ingo
Date Posted: 18 Jun 16 at 9:02AM
Hi Russel,

i'm not familiar with this functionality but what about SetClippingPath?
In the documentation about SetLineJoin i've read about "subsequently drawn graphics"...



-------------
Cheers,
Ingo



Posted By: rweetch
Date Posted: 20 Jun 16 at 9:43AM
Hi Ingo

I don't think that is the answer.

I think SetLineJoin must be designed to work with the Path methods as that is the only place I can see a line join being down within the system. DrawBox maybe, but then why have DrawRoundedBox? 

I'll take this up with support.


Posted By: rweetch
Date Posted: 20 Jun 16 at 9:48AM
An update. 

It does work but not how I was expecting. The line width I was using was too small to show the curve.

I guess I'll have to try DrawRoundedBox now, but that seems to need a lot of calculation to give the right size compared with the path methods. But I'll see where I get and post back.



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