6 references to new
System.Drawing.Common (1)
System\Drawing\TextureBrush.cs (1)
56
:
this
(image, wrapMode, (RectangleF)dstRect)
System.Drawing.Common.Tests (5)
System\Drawing\TextureBrushTests.cs (5)
166
using TextureBrush brush =
new
(image, wrapMode, (RectangleF)rectangle);
247
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, WrapMode.Tile, RectangleF.Empty));
263
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, WrapMode.Tile, RectangleF.Empty));
274
Assert.ThrowsAny<ArgumentException>(() => new
TextureBrush
(image, wrapMode, RectangleF.Empty));
294
Assert.Throws<OutOfMemoryException>(() => new
TextureBrush
(image, WrapMode.Tile, (RectangleF)rectangle));