Well, I am writing a code to get an image, convert it to grayscale. I have got everything done, except that the image (when bigger than picturebox) it isn't scaled properly. And when I use code to scale it to fit the picturebox, another problem arises. So leaving behind scaling, I now want to pan and zoom in/out the image to make the required image part visible in the picturebox.
How do I do this?
Note: I saw a thread where someone (I think Jack) had posted a code to Zoom with DirectX controls, unfortunately I am running Windows 7, and it doesn't have the dx8vb.dll in its DirectX package, since DX8 is out of support for a long time now.
So I'd prefer some code which would actually pan or zoom the image without having to add those DirectX controls. Is this possible? If so how?
How do I do this?
Note: I saw a thread where someone (I think Jack) had posted a code to Zoom with DirectX controls, unfortunately I am running Windows 7, and it doesn't have the dx8vb.dll in its DirectX package, since DX8 is out of support for a long time now.
So I'd prefer some code which would actually pan or zoom the image without having to add those DirectX controls. Is this possible? If so how?