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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Draw Rotated Line?
  FAQ FAQ  Forum Search   Register Register  Login Login

Draw Rotated Line?

 Post Reply Post Reply
Author
Message
AndyD View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Apr 13
Location: UK
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyD Quote  Post ReplyReply Direct Link To This Post Topic: Draw Rotated Line?
    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
Back to Top
AndyD View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Apr 13
Location: UK
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyD Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store