Print Page | Close Window

DrawRoundedBox

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


Topic: DrawRoundedBox
Posted By: Marco
Subject: DrawRoundedBox
Date Posted: 26 Jun 17 at 10:15AM
Hi,
 
can I have some samples to use this function?
 
I want to draw a rectangle with beveled corners but I'm not able to do this after several tests.
 
Thanks,
regards
 



Replies:
Posted By: tfrost
Date Posted: 26 Jun 17 at 10:43AM
Open the library dashboard utility and select Scripts / Vector Graphics / Draw Shapes.  Then edit the DrawBox to be DrawRoundedBox and change the last three parameters to 20, 25, 5, 0.  Save and Run.

If you still have problems, please show the code you are using and describe what fails when you run it, so that people here can help you.  Also it would help to have the library version and the language you are calling it from.


Posted By: Marco
Date Posted: 26 Jun 17 at 10:52AM

This is my sample code:
------------------------------ 
with normal corners
oQP.DrawBox(Left, Top, Width, Height, 2)
------------------------------
with beveled corners (the same + radius)
oQP.DrawRoundedBox(Left, Top, Width, Height, radius, 2)

I tryed with several value of radius (positive or negative) but the corners are in opposite side.



Posted By: Marco
Date Posted: 26 Jun 17 at 4:22PM
Solved changing coordinates!
Thanks!
 
 



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