[Solved] Drag to straighten tool

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
DaveRS
Junior Member
Posts: 12
Joined: Sat Feb 22, 2020 4:37 am

[Solved] Drag to straighten tool

Post by DaveRS » Sat Feb 22, 2020 4:46 am

Drag to straighten tool

I am currently working from some scanned drawings, I need to straighten these drawings, prior to scaling the drawings to get correct measurements.

In the Image "property editor" manually adjusting the angle to get an horizontal or vertical line aligned would be so much easier with a drag to alight type tool which is often seen in photo editing tools.

Any chance of getting this type of tool added to QCAD Pro ?

This would be a real time saver.


Regards


Dave
Last edited by DaveRS on Sat Feb 22, 2020 1:52 pm, edited 1 time in total.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4939
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Drag to straighten tool

Post by Husky » Sat Feb 22, 2020 6:17 am

Hi Dave,
DaveRS wrote:
Sat Feb 22, 2020 4:46 am
Any chance of getting this type of tool added to QCAD Pro ?
The best place to ask would be to file a feature request below: https://www.qcad.org/bugtracker

Workaround:
fade the bitmap, select and use the Property Editor to set the Fade to 60 or so

Husky-2020.02.21-02.png
Husky-2020.02.21-02.png (18.63 KiB) Viewed 4567 times

draw a line from 2 points on top of the bitmap to get a reference to a horizontal or vertical line

Husky-2020.02.21-03.png
Husky-2020.02.21-03.png (16.59 KiB) Viewed 4567 times

select the bitmap and the line,
launch the Rotate tool [1],
rotation reference = snap to end of line [2]
... Dialog pops up,
Delete Original [3]
activate Define Angle using Mouse cursor [4]
OK [5]

Husky-2020.02.21-04.png
Husky-2020.02.21-04.png (56.47 KiB) Viewed 4567 times

snap to the other end of the reference line [6]


Husky-2020.02.21-05.png
Husky-2020.02.21-05.png (45.58 KiB) Viewed 4567 times

press the ALT key on the keyboard, move the mouse up until it snaps to the horizontal restriction - click - done. :wink:

Husky-2020.02.21-06.png
Husky-2020.02.21-06.png (5.43 KiB) Viewed 4567 times
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

DaveRS
Junior Member
Posts: 12
Joined: Sat Feb 22, 2020 4:37 am

Re: Drag to straighten tool

Post by DaveRS » Sat Feb 22, 2020 12:19 pm

Hi Husky

Thanks for that method of straightening an element within a drawing, certainly beats my random "guess the degree" to straighten an element.

I didn't think of logging my request in the bug tracker.


Thanks


Dave

CVH
Premier Member
Posts: 3470
Joined: Wed Sep 27, 2017 4:17 pm

Re: [Solved] Drag to straighten tool

Post by CVH » Sat Feb 22, 2020 3:07 pm

Hi,
You can do this without drawing a line too.
With set and lock relative zero....

But the line method has other advantages.
If you draw the line over a known distance then the length is the scanned size.
After straighten it up you can immediately scale it in respect to the length of the line.
And when there is symmerty involved then the middle of the line is the center of the scan.

Scans are not always with a perfect aspect ratio.
The other ratio then the one you just scaled is fairly orthogonal to the line.

I say fairly because only very high end scanners are squared out up to a certain degree.
Most scanners are made for pictures and text representation.
In those case the human eye if very forgiving and even quite blind.

The reason I don't see this to become a tool is pixelation.
It is usualy not that easy and correct where one defines a spot in a field of pixels.
With the one pixel somewhat darker grey as the others.

A good idea is to play with a contrasting color and a line with a little smaller width as a line on the scan.
Zooming in & out reveals proper placement similar as a corona and then the eye is good in seeing shades of.

If it are endpoints in the scan it doesn't hurt to draw at least sections of those lines first.
Once those segments satisfy you can simply use their endpoints.

Regards,
CVH

Post Reply

Return to “QCAD Suggestions and Feedback”