5 references to new
System.Drawing.Common (1)
System\Drawing\TextureBrush.cs (1)
81
public TextureBrush(Image image, Rectangle dstRect) :
this
(image, dstRect, null) { }
System.Drawing.Common.Tests (4)
System\Drawing\TextureBrushTests.cs (4)
201
using TextureBrush brush =
new
(image, rectangle, attributes);
247
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, Rectangle.Empty, null));
263
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, Rectangle.Empty, null));
296
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, rectangle, null));