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)
406
using Bitmap clone = bitmap.
Clone
((RectangleF)rectangle, format);
426
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
Clone
(new RectangleF(0, 0, width, height), bitmap.PixelFormat));
440
Assert.Throws<ExternalException>(() => bitmap.
Clone
(new RectangleF(x, y, width, height), bitmap.PixelFormat));
456
Assert.Throws<ExternalException>(() => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), format));
464
Assert.Throws<ExternalException>(() => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));
485
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
Clone
(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));