Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I am loading image in picturebox using bitmap -size of image = 8.5�x11".

 

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...