Print Page | Close Window

Draw Rotated Line?

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=2911
Printed Date: 28 Jun 25 at 1:39PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Draw Rotated Line?
Posted By: AndyD
Subject: Draw Rotated Line?
Date Posted: 03 Jun 14 at 3:04PM
I know we are able to draw rotated text and a rotated box to a specific angle, but I have need to draw a line at a specific angle, ideally after getting the angle of a previously drawn line.
Something along the lines of DrawRotatedLine(Xpos,YPos,Angle,Length) and GetLineAngle(Xpos1,Ypos1,Xpos2,Ypos2) ?
 
Is this possible?



Replies:
Posted By: AndyD
Date Posted: 03 Jun 14 at 5:11PM
Problem solved but rather than just delete the post I thought I'd share the solution in case anyone else needs this.
 
I just used trig in my code to find the angle of the plotted line, then drew a rotated box at that angle, with the height of the box at 0.5, drawoptions set to fill only.
 
This gave me the result I needed.



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