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

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

Scale an image to certain dimension

Postby 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: 4125
Joined: Fri Mar 30, 2007 6:07 am

Postby 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

Postby mmasroorali » Thu Feb 23, 2012 3:40 pm

Thanks a lot. It worked, perfectly.


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

Who is online

Users browsing this forum: No registered users and 1 guest