`X`_{1} = X_{0} + K × X_{2}

Y_{1} = Y_{0} + K × Y_{2}

Wake up and solve them.

hi all

i have an image of the desktop,the image size is smaller than the desktop size

how can i find a point on the desktop corresponding to the a point in the image

i have an image of the desktop,the image size is smaller than the desktop size

how can i find a point on the desktop corresponding to the a point in the image

Comments

Please see my comment to the question. In both cases, this is not a problem for gradate students. It means the solution of linear equations which is a work for middle school or early high school student (it depends on your school system, but it requires level well below the required entry level of a college, university or a technical school student). It's reduced to the ability to solve equations like

Wake up and solve them.

—SA

`X`_{1} = X_{0} + K × X_{2}

Y_{1} = Y_{0} + K × Y_{2}

Wake up and solve them.

Assuming you have a point on the image relative to the top left hand corner of the image in terms of image coordinates, then it is a simple matter of scaling:

X_{desktop} = X_{image} * (Width_{desktop} / Width_{image})

Y_{desktop} = Y_{image} * (Height_{desktop} / Height_{image})

Obviously, you won't necessarily get to exactly that point - there will be an error of a pixel or two depending on the relative sizes.

X

Y

Obviously, you won't necessarily get to exactly that point - there will be an error of a pixel or two depending on the relative sizes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada
+1 416-849-8900 x 100

--SA

--SA