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)
24
using TextureBrush brush =
new
(bitmap);
65
using TextureBrush brush =
new
(image, wrapMode);
92
using TextureBrush brush =
new
(image, rectangle);
113
using TextureBrush brush =
new
(image, (RectangleF)rectangle);
146
using TextureBrush brush =
new
(image, wrapMode, rectangle);
167
using TextureBrush brush =
new
(image, wrapMode, (RectangleF)rectangle);
201
using TextureBrush brush =
new
(image, rectangle, attributes);
223
using TextureBrush brush =
new
(image, (RectangleF)rectangle, attributes);
242
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
((Image)null));
243
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, WrapMode.Tile));
244
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, RectangleF.Empty));
245
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, Rectangle.Empty));
246
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, RectangleF.Empty, null));
247
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, Rectangle.Empty, null));
248
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, WrapMode.Tile, RectangleF.Empty));
249
AssertExtensions.Throws<ArgumentNullException>("image", () => new
TextureBrush
(null, WrapMode.Tile, Rectangle.Empty));
258
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image));
259
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, WrapMode.Tile));
260
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, RectangleF.Empty));
261
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, Rectangle.Empty));
262
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, RectangleF.Empty, null));
263
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, Rectangle.Empty, null));
264
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, WrapMode.Tile, RectangleF.Empty));
265
AssertExtensions.Throws<ArgumentException>(null, () => new
TextureBrush
(image, WrapMode.Tile, Rectangle.Empty));
274
Assert.ThrowsAny<ArgumentException>(() => new
TextureBrush
(image, wrapMode));
275
Assert.ThrowsAny<ArgumentException>(() => new
TextureBrush
(image, wrapMode, RectangleF.Empty));
276
Assert.ThrowsAny<ArgumentException>(() => new
TextureBrush
(image, wrapMode, Rectangle.Empty));
292
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, rectangle));
293
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, (RectangleF)rectangle));
294
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, WrapMode.Tile, rectangle));
295
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, WrapMode.Tile, (RectangleF)rectangle));
296
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, rectangle, null));
297
Assert.Throws<ExternalException>(() => new
TextureBrush
(image, (RectangleF)rectangle, null));
304
using TextureBrush brush =
new
(image, WrapMode.Clamp);
316
TextureBrush brush =
new
(image);
326
TextureBrush brush =
new
(image);
347
using TextureBrush brush =
new
(image);
373
using TextureBrush brush =
new
(image);
382
using TextureBrush brush =
new
(image);
392
using TextureBrush brush =
new
(image);
411
using TextureBrush brush =
new
(image);
425
TextureBrush brush =
new
(image);
436
using TextureBrush brush =
new
(image);
451
TextureBrush brush =
new
(image);
476
using TextureBrush brush =
new
(image);
503
using TextureBrush brush =
new
(image);
512
TextureBrush brush =
new
(image);
540
using TextureBrush brush =
new
(image);
567
using TextureBrush brush =
new
(image);
576
TextureBrush brush =
new
(image);
587
using TextureBrush brush =
new
(image);
597
using TextureBrush brush =
new
(image);
605
using TextureBrush brush =
new
(image);
617
TextureBrush brush =
new
(image);
645
using TextureBrush brush =
new
(image);
672
using TextureBrush brush =
new
(image);
681
TextureBrush brush =
new
(image);
697
using TextureBrush brush =
new
(image);
708
using TextureBrush brush =
new
(image);
716
TextureBrush brush =
new
(image);
812
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)
425
using TextureBrush textureBrush =
new
(backgroundImage, WrapMode.Tile);
1544
t_gridBrush = new
TextureBrush
(bitmap);
2115
t_frameBrushActive = new
TextureBrush
(bitmap);
2184
using (Brush brush = new
TextureBrush
(b))
2194
using (Brush brush = new
TextureBrush
(b))
2246
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)
24
using
TextureBrush
brush = new(bitmap);
65
using
TextureBrush
brush = new(image, wrapMode);
92
using
TextureBrush
brush = new(image, rectangle);
113
using
TextureBrush
brush = new(image, (RectangleF)rectangle);
146
using
TextureBrush
brush = new(image, wrapMode, rectangle);
167
using
TextureBrush
brush = new(image, wrapMode, (RectangleF)rectangle);
201
using
TextureBrush
brush = new(image, rectangle, attributes);
223
using
TextureBrush
brush = new(image, (RectangleF)rectangle, attributes);
304
using
TextureBrush
brush = new(image, WrapMode.Clamp);
305
TextureBrush
clone = Assert.IsType<
TextureBrush
>(brush.Clone());
316
TextureBrush
brush = new(image);
326
TextureBrush
brush = new(image);
347
using
TextureBrush
brush = new(image);
354
TextureBrush
clone = (
TextureBrush
)brush.Clone();
373
using
TextureBrush
brush = new(image);
382
using
TextureBrush
brush = new(image);
392
using
TextureBrush
brush = new(image);
411
using
TextureBrush
brush = new(image);
425
TextureBrush
brush = new(image);
436
using
TextureBrush
brush = new(image);
451
TextureBrush
brush = new(image);
476
using
TextureBrush
brush = new(image);
483
TextureBrush
clone = (
TextureBrush
)brush.Clone();
503
using
TextureBrush
brush = new(image);
512
TextureBrush
brush = new(image);
540
using
TextureBrush
brush = new(image);
547
TextureBrush
clone = (
TextureBrush
)brush.Clone();
567
using
TextureBrush
brush = new(image);
576
TextureBrush
brush = new(image);
587
using
TextureBrush
brush = new(image);
597
using
TextureBrush
brush = new(image);
605
using
TextureBrush
brush = new(image);
617
TextureBrush
brush = new(image);
645
using
TextureBrush
brush = new(image);
652
TextureBrush
clone = (
TextureBrush
)brush.Clone();
672
using
TextureBrush
brush = new(image);
681
TextureBrush
brush = new(image);
697
using
TextureBrush
brush = new(image);
708
using
TextureBrush
brush = new(image);
716
TextureBrush
brush = new(image);
812
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)
425
using
TextureBrush
textureBrush = new(backgroundImage, WrapMode.Tile);