Large Image Pixel problem
-
I have a program that loads in a large image (14000x10000 pixels) & resizes the image to fit on the screen. Once it is resized I track the pixel that the mouse is over. This is reported back as the actual location on the screen (somwhere within the 1280x1024 of the screen resolution). I would like to know how to get the actual location within the larger image. Any thoughts? Thanks R.Myers
-
I have a program that loads in a large image (14000x10000 pixels) & resizes the image to fit on the screen. Once it is resized I track the pixel that the mouse is over. This is reported back as the actual location on the screen (somwhere within the 1280x1024 of the screen resolution). I would like to know how to get the actual location within the larger image. Any thoughts? Thanks R.Myers
-
I have a program that loads in a large image (14000x10000 pixels) & resizes the image to fit on the screen. Once it is resized I track the pixel that the mouse is over. This is reported back as the actual location on the screen (somwhere within the 1280x1024 of the screen resolution). I would like to know how to get the actual location within the larger image. Any thoughts? Thanks R.Myers
If you select one pixel on your screen, the corresponding location on the original image would be an entire rectangle with approx dimensions of 12*14; its location can be found as Guffa already explained, as well as its exact size. :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
If you select one pixel on your screen, the corresponding location on the original image would be an entire rectangle with approx dimensions of 12*14; its location can be found as Guffa already explained, as well as its exact size. :)
Luc Pattyn [My Articles] [Forum Guidelines]