Mansi Shah
Newcomer
- Joined
- Dec 5, 2008
- Messages
- 2
Hi,
I am loading image in picturebox using bitmap -size of image = 8.5x11".
x = Single.Parse("11") * 96
y = Single.Parse("8.5") * 96
Dim ZoomImage As New Bitmap(Image1, x, y)
Dim converted As Graphics = Graphics.FromImage(ZoomImage)
converted.InterpolationMode = InterpolationMode.HighQualityBicubic
picArt.Tag = imagePath
picArt.Image = ZoomImage
picArt.Height = ZoomImage.Height
picArt.Width = ZoomImage.Width
It shows the image perfect. And not showing scrollbars on panel on which i m adding picturebox.
But when i decrease the resolution, it shows scrollbars.
How to manage with resolution and image?
I am loading image in picturebox using bitmap -size of image = 8.5x11".
x = Single.Parse("11") * 96
y = Single.Parse("8.5") * 96
Dim ZoomImage As New Bitmap(Image1, x, y)
Dim converted As Graphics = Graphics.FromImage(ZoomImage)
converted.InterpolationMode = InterpolationMode.HighQualityBicubic
picArt.Tag = imagePath
picArt.Image = ZoomImage
picArt.Height = ZoomImage.Height
picArt.Width = ZoomImage.Width
It shows the image perfect. And not showing scrollbars on panel on which i m adding picturebox.
But when i decrease the resolution, it shows scrollbars.
How to manage with resolution and image?