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)
200
using TextureBrush brush =
new
(image, rectangle, attributes);
246
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, Rectangle.Empty, null));
262
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, Rectangle.Empty, null));
295
Assert.Throws<OutOfMemoryException>(() => new
TextureBrush
(image, rectangle, null));