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