Hello!, i really need help with this, and i believe one of you guys out there my have done these with .net.
1. I need to be able to Zoom In an image.
2. I need to be able to Zoom Out the image.
3. be able to move the image inside the picturebox. (drag the image to view the hidden parts of it as image is larger than the picture box itself.)
4. zoom selected part of the image inside the picture box. (either using cropbox)
i already have done lots of googling and spent the whole day reading some articles over the net but haven't found one which is exactly what i need. i have been able to zoom in and zoom out the image.. but, as i zoom in and out the image's quality got worst, i based it on this code i have found in one forum.
as you can see., a new image is being created every time this function is called thus the original image is affected.


please, i really need some help with this guys..
thank you in advance...
1. I need to be able to Zoom In an image.
2. I need to be able to Zoom Out the image.
3. be able to move the image inside the picturebox. (drag the image to view the hidden parts of it as image is larger than the picture box itself.)
4. zoom selected part of the image inside the picture box. (either using cropbox)
i already have done lots of googling and spent the whole day reading some articles over the net but haven't found one which is exactly what i need. i have been able to zoom in and zoom out the image.. but, as i zoom in and out the image's quality got worst, i based it on this code i have found in one forum.
VB.NET:
Dim original As Image
original = pbImage.Image
Dim zoomImage As New Bitmap(original, (Convert.ToInt32(original.Width + ZoomValue)), (Convert.ToInt32(original.Height + ZoomValue)))
Dim converted As Graphics = Graphics.FromImage(zoomImage)
converted.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic 'InterpolationMode.HighQualityBicubic
pbImage.Image = Nothing
pbImage.Image = zoomImage
as you can see., a new image is being created every time this function is called thus the original image is affected.
please, i really need some help with this guys..
thank you in advance...