2019-10-01

Crop Image in C#

                //Crop Image to Proper Size

                var img = Image.FromFile("screenshot.png");
                Bitmap bmpImage = new Bitmap(img);
                Bitmap bmpCrop = bmpImage.Clone(new Rectangle(1370, 340, 200, 140), bmpImage.  //width distance, height distance,  new share width, new shape height
                PixelFormat);
                bmpCrop.Save("12.jpg");





No comments:

Post a Comment

Setup VNC on Ubuntu 20.04

  sudo apt update sudo apt install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server sudo apt install tightvncserver vncserver...