36 references to TextureBrush
System.Drawing.Common.Tests (30)
System\Drawing\PenTests.cs (1)
16yield return new object[] { new TextureBrush(new Bitmap(1, 1)), PenType.TextureFill };
System\Drawing\TextureBrushTests.cs (29)
23using TextureBrush brush = new(bitmap); 241AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((Image)null)); 257AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image)); 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);
System.Windows.Forms (6)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
82return new TextureBrush(bitmap);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
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);