Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing an image according to two selected points

Status
Not open for further replies.

BOMB3RMAN

Programmer
Mar 19, 2005
1
AU
Is there a way to write a program/script for paintshop pro (and/or even other imaging software that you know of) so that it would resize and image to the exact two points that you select. Let me explain.

You have, say, a map of an area. Then you have another map of the same area with a different scale and rotation angle. What you need to do is overlay these two maps one onto another so that they coincide with each other. The way you can do it is you tell photoshop where exactly you want two points on one image to be moved to on the corresponding two points on another image.

That way photoshop will calculate the scale and rotation of the image according to where you placed the points on another image effectiely merging the two images together.

The maths behind this is easy, the exact question I am asking is how I can actually make photoshop "recognize" which two images I am about to merge, "recognize" when I click a point and record its position into memory and also record its new position that you selected on another image.

If anyone knows how that can be done I'd greatly appreaciate that. I am just tired of doing it manually. Writing it in VB is easy but I don't know how to write the code to actually rezise and rotate an image in VB. If I could I would do that.

Thanks alot :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top