7 references to Clone
System.Drawing.Common.Tests (7)
mono\System.Drawing\BitmapTests.cs (1)
375
using Bitmap bmp_rotate = src.
Clone
(new RectangleF(0, 0, width, height), PixelFormat.Format32bppArgb);
System\Drawing\BitmapTests.cs (6)
407
using Bitmap clone = bitmap.
Clone
((RectangleF)rectangle, format);
427
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
Clone
(new RectangleF(0, 0, width, height), bitmap.PixelFormat));
441
Assert.Throws<OutOfMemoryException>(() => bitmap.
Clone
(new RectangleF(x, y, width, height), bitmap.PixelFormat));
457
Assert.Throws<OutOfMemoryException>(() => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), format));
465
Assert.Throws<OutOfMemoryException>(() => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));
486
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));