how to resize a image thtz lager than picturebox??
y2kshane
-2
Light Poster
Recommended Answers
Jump to PostAre you asking to Re-size the Image it's self OR change the SizeMode/BackgroundImageLayout of the PictureBox, depending if the image is larger than the PictureBox.Size?
Jump to PostHi,
You can try this:
'following code resizes picture to fit Dim bm As New Bitmap(PictureBox1.Image) Dim x As Int32 'variable for new width size Dim y As Int32 'variable for new height size Dim width As Integer = Val(x) 'image width. Dim height As Integer …
All 6 Replies
codeorder
197
Nearly a Posting Virtuoso
kvprajapati
1,826
Posting Genius
Team Colleague
Luc001
77
Posting Whiz
y2kshane
commented:
thnx for the reply :) work fine
+1
Luc001
77
Posting Whiz
avijit_mitra
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.