need to resize image in vb.net

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3727
    John Coder
    Member

    can you provide me the full code for resizing an image in vb.net.
    i have a picture box and one textbox on the form. i want to re size pictutebox image according to entered value percentage in the textbox.

    Thanks

    #4396
    Anonymous
    Inactive

    i like to show my worked image resize code to help anyone who need this. And if you wanna see more detail, you can check this. hope it can be useful.

    http://www.rasteredge.com/how-to/csharp-imaging/resize-image/

    private static Image ResizeImage(Image imgToResize, Size size)
    {
    Bitmap LoadImage = new Bitmap(@”C:\\1.bmp”);
    Size newsize = new size (width, height);
    e.g. Size newsize = new size (150, 250);
    }
    Image.ResizeImage (@”C:\\1.bmp”, new size(150,250));

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.