Scale an image to certain dimension

Use this forum to ask questions about how to do things in QCAD 2.1/2.2.

Moderator: andrew

Locked
mmasroorali
Junior Member
Posts: 16
Joined: Tue Feb 14, 2012 3:34 am

Scale an image to certain dimension

Post by mmasroorali » Thu Feb 23, 2012 1:52 pm

Dear All,
I can do this by trial and error. But I was wondering whether I can do this precisely using some automatic technique.

I have imported an image (say png) inside qcad. I know that a certain edge in the image in 100 meters in actual dimension. What will be the best way to scale the image so that that particular edge becomes 100 meters inside qcad.

At this moment, all I can do is try one scaling factor and then go through trial and error.

Any tips will be appreciated.

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Post by andrew » Thu Feb 23, 2012 3:28 pm

- Insert the bitmap
- Use tool 'Info' - 'Distance Point to Point' to measure the length of the edge that has to be 100m. The result is printed in the QCAD command line history, for example '176'.
- Scale image by factor f = (desired value) / (measured value). For example f = 100 / 176 = 0.568181818.

mmasroorali
Junior Member
Posts: 16
Joined: Tue Feb 14, 2012 3:34 am

Post by mmasroorali » Thu Feb 23, 2012 3:40 pm

Thanks a lot. It worked, perfectly.

Locked

Return to “QCAD 2.1/2.2 'How Do I' Questions”