need to resize image in

Home Forums General Programming Visual Basic .Net need to resize image in


This topic contains 0 replies, has 2 voices, and was last updated by  Anonymous 5 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3727

    John Coder

    can you provide me the full code for resizing an image in
    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.




    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.

    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.