public override iFigure Clone(iFigure figure, Image srcBitmap, Rectangle section) { // Вырезаем выбранный кусок картинки Bitmap bmp = new Bitmap(section.Width, section.Height); using (Graphics g = Graphics.FromImage(bmp)) { g.DrawImage(srcBitmap, 0, 0, section, GraphicsUnit.Pixel); } figure.pbox1 = bmp; //Возвращаем кусок картинки. return(figure); //Clipboard.SetDataObject(result.pbox2.Image, true); //return result; }
public abstract iFigure Clone(iFigure figure, Image srcBitmap, Rectangle section);