Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Draw Rotated Line? |
Post Reply ![]() |
Author | |
AndyD ![]() Senior Member ![]() ![]() Joined: 30 Apr 13 Location: UK Status: Offline Points: 54 |
![]() ![]() ![]() ![]() ![]() 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?
Edited by AndyD - 03 Jun 14 at 3:37PM |
|
![]() |
|
AndyD ![]() Senior Member ![]() ![]() Joined: 30 Apr 13 Location: UK Status: Offline Points: 54 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store