In this video I will show you how to write a program in vb 2010 to resize an image in any format, then save it based on a format the user chooses. I only demostrate how to deal with jpg and gif, but you can apply the same programming techniques to customize your program. Please rate, comment, and enjoy!
Nguồn:https://wijstaanvooronzegrondrechten.org/
Thank you, excellent …
This work perfectly Thanks maannnn!!! awesome!!
hello, how would you do to make measurements inside an image, like the length and width of a door or window inside photo.
Can you convert it to c#?
What did you input at the properties of OPEN FILE DIALOG FILTER SECTION.?? TIA
kindly help me…..
why my coding here can't show the "path"
SaveFileDialog.DefaultExt =
Excellent Thanks!
Great ! tnx !
Excellent tutorial, thank you.
Can I use this code in VBA access?
Thank you, you helped a Brazilian
Thank you very much! Now I can make a small software that makes thumbnails for my website in a second!
i cant see clearly the filter
and then when I want to save to the database how? please tell me tuttorial resize image before save to database mysql? 🙂 thanks before
Thank you dude! You helped me a lot.
i didn't make this, but thanks because it helped me with the background image so thanks mate!
what's the gray part on the rectangle
Again, hats off for a great Tutorial. I changed a few things as we went along that others might find useful.
1. In Form Load, I set the ImageSizeLable.Text = Rectangle.Size.ToString
2. Where you have NewSize, I omitted this and just used Rectangle.Size to keep from using another variable.
3. At the end of the OpenFileDialog If statement I added ImagePathGroupBox.Width = ImagePathLabel.Width + 25 to allow room for long paths.
4. I changed "SaveFileDialog.DefaultExt = Path.GetExtension(ImagePathLabel.Text)" to "SaveFileDialog.DefaultExt = System.IO.Path.GetExtension(ImagePathLabel.Text)" so no Imports were needed. Imports only help to keep from having to retype the same stuff over and over.
The reasons for my changes are simple. Teacher implored that we should always code with flexibility. If a user just resized the rectangle, nothing in the code will need to be changed with my additions.
Extra Credit: Add flexibility so the rectangle can be resized at runtime. Try to go as far as to keep the rectangle proportional to the original image.
For those with bad eyesight like mine, the filters for the OpenFileDialog is "jpg and gif|*.jpg;*.gif"
Great Tute. Quality of video a bit too low. Can't read what you put as filter. Perhaps zooming would help if you keep this fuzzy quality of 480.
i get this error plz help 'BackgroundImage' is not a member of 'System.Drawing.Rectangle
Excellent – very helpful. Thanks for posting.
thx dude, for making this awsome tutorial! really helped me alot!
try this steps:
remove the background image i.e: None
now your 1st and 2nd error will remove and 3rd error:
please check the code again…
here it's seems your mistake in the code
Could you include the option to maintain the aspect ratio?
Dont answer