70 instantiations of TextureBrush
System.Drawing.Common.Tests (62)
System\Drawing\PenTests.cs (1)
16yield return new object[] { new TextureBrush(new Bitmap(1, 1)), PenType.TextureFill };
System\Drawing\TextureBrushTests.cs (61)
23using TextureBrush brush = new(bitmap); 64using TextureBrush brush = new(image, wrapMode); 91using TextureBrush brush = new(image, rectangle); 112using TextureBrush brush = new(image, (RectangleF)rectangle); 145using TextureBrush brush = new(image, wrapMode, rectangle); 166using TextureBrush brush = new(image, wrapMode, (RectangleF)rectangle); 200using TextureBrush brush = new(image, rectangle, attributes); 222using TextureBrush brush = new(image, (RectangleF)rectangle, attributes); 241AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((Image)null)); 242AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile)); 243AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty)); 244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty)); 245AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty, null)); 246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null)); 247AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, RectangleF.Empty)); 248AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, Rectangle.Empty)); 257AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image)); 258AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, WrapMode.Tile)); 259AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, RectangleF.Empty)); 260AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty)); 261AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, RectangleF.Empty, null)); 262AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty, null)); 263AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, WrapMode.Tile, RectangleF.Empty)); 264AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, WrapMode.Tile, Rectangle.Empty)); 273Assert.ThrowsAny<ArgumentException>(() => new TextureBrush(image, wrapMode)); 274Assert.ThrowsAny<ArgumentException>(() => new TextureBrush(image, wrapMode, RectangleF.Empty)); 275Assert.ThrowsAny<ArgumentException>(() => new TextureBrush(image, wrapMode, Rectangle.Empty)); 291Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, rectangle)); 292Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, (RectangleF)rectangle)); 293Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, WrapMode.Tile, rectangle)); 294Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, WrapMode.Tile, (RectangleF)rectangle)); 295Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, rectangle, null)); 296Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, (RectangleF)rectangle, null)); 303using TextureBrush brush = new(image, WrapMode.Clamp); 315TextureBrush brush = new(image); 325TextureBrush brush = new(image); 346using TextureBrush brush = new(image); 372using TextureBrush brush = new(image); 381using TextureBrush brush = new(image); 391using TextureBrush brush = new(image); 410using TextureBrush brush = new(image); 424TextureBrush brush = new(image); 435using TextureBrush brush = new(image); 450TextureBrush brush = new(image); 475using TextureBrush brush = new(image); 502using TextureBrush brush = new(image); 511TextureBrush brush = new(image); 539using TextureBrush brush = new(image); 566using TextureBrush brush = new(image); 575TextureBrush brush = new(image); 586using TextureBrush brush = new(image); 596using TextureBrush brush = new(image); 604using TextureBrush brush = new(image); 616TextureBrush brush = new(image); 644using TextureBrush brush = new(image); 671using TextureBrush brush = new(image); 680TextureBrush brush = new(image); 696using TextureBrush brush = new(image); 707using TextureBrush brush = new(image); 715TextureBrush brush = new(image); 811using TextureBrush brush = new(brushBitmap, wrapMode);
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
82return new TextureBrush(bitmap);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1556using TextureBrush textureBrush = new(BackgroundImage, WrapMode.Tile);
System\Windows\Forms\Rendering\ControlPaint.cs (6)
428using TextureBrush textureBrush = new(backgroundImage, WrapMode.Tile); 1548t_gridBrush = new TextureBrush(bitmap); 2119t_frameBrushActive = new TextureBrush(bitmap); 2188using (Brush brush = new TextureBrush(b)) 2198using (Brush brush = new TextureBrush(b)) 2250t_frameBrushSelected = new TextureBrush(bitmap);
49 references to TextureBrush
System.Drawing (1)
System.Drawing.cs (1)
165[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.TextureBrush))]
System.Drawing.Common.Tests (46)
System\Drawing\TextureBrushTests.cs (46)
23using TextureBrush brush = new(bitmap); 64using TextureBrush brush = new(image, wrapMode); 91using TextureBrush brush = new(image, rectangle); 112using TextureBrush brush = new(image, (RectangleF)rectangle); 145using TextureBrush brush = new(image, wrapMode, rectangle); 166using TextureBrush brush = new(image, wrapMode, (RectangleF)rectangle); 200using TextureBrush brush = new(image, rectangle, attributes); 222using TextureBrush brush = new(image, (RectangleF)rectangle, attributes); 303using TextureBrush brush = new(image, WrapMode.Clamp); 304TextureBrush clone = Assert.IsType<TextureBrush>(brush.Clone()); 315TextureBrush brush = new(image); 325TextureBrush brush = new(image); 346using TextureBrush brush = new(image); 353TextureBrush clone = (TextureBrush)brush.Clone(); 372using TextureBrush brush = new(image); 381using TextureBrush brush = new(image); 391using TextureBrush brush = new(image); 410using TextureBrush brush = new(image); 424TextureBrush brush = new(image); 435using TextureBrush brush = new(image); 450TextureBrush brush = new(image); 475using TextureBrush brush = new(image); 482TextureBrush clone = (TextureBrush)brush.Clone(); 502using TextureBrush brush = new(image); 511TextureBrush brush = new(image); 539using TextureBrush brush = new(image); 546TextureBrush clone = (TextureBrush)brush.Clone(); 566using TextureBrush brush = new(image); 575TextureBrush brush = new(image); 586using TextureBrush brush = new(image); 596using TextureBrush brush = new(image); 604using TextureBrush brush = new(image); 616TextureBrush brush = new(image); 644using TextureBrush brush = new(image); 651TextureBrush clone = (TextureBrush)brush.Clone(); 671using TextureBrush brush = new(image); 680TextureBrush brush = new(image); 696using TextureBrush brush = new(image); 707using TextureBrush brush = new(image); 715TextureBrush brush = new(image); 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);