8 references to new
System.Drawing.Common.Tests (6)
System\Drawing\TextureBrushTests.cs (6)
64using TextureBrush brush = new(image, wrapMode); 242AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile)); 258AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, WrapMode.Tile)); 273Assert.ThrowsAny<ArgumentException>(() => new TextureBrush(image, wrapMode)); 303using TextureBrush brush = new(image, WrapMode.Clamp); 811using TextureBrush brush = new(brushBitmap, wrapMode);
System.Windows.Forms (2)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1556using TextureBrush textureBrush = new(BackgroundImage, WrapMode.Tile);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
428using TextureBrush textureBrush = new(backgroundImage, WrapMode.Tile);