public void CreateSquare(int w, int h) { // нарезка изображения на квадраты типа bmp Rectangle REct = new Rectangle(X, Y, w, h); Bitmap bmpSquate = (Bitmap)bmp.Clone(REct,System.Drawing.Imaging.PixelFormat.DontCare); } 

There is an original image of bmp type and it is necessary to cut it into squares. To do this, I clone the original image with a new rectangle specified by specifying its width and height as parameters taken by the method. But how to get the coordinates of the upper left corner of the original image? (Those that are X and Y)?

  • 2
    If you mean the corners of the image where the pixels start from, it will be 0,0 - LLENN

0