66 references to GetRegionScans
System.Drawing.Common.Tests (64)
mono\System.Drawing\GraphicsTests.cs (7)
153
rects = g.Clip.
GetRegionScans
(new Matrix());
180
_rects = g.Clip.
GetRegionScans
(new Matrix());
207
_rects = g.Clip.
GetRegionScans
(new Matrix());
225
_rects = g.Clip.
GetRegionScans
(new Matrix());
244
rects = g.Clip.
GetRegionScans
(new Matrix());
256
rects = g.Clip.
GetRegionScans
(new Matrix());
268
rects = g.Clip.
GetRegionScans
(new Matrix());
System\Drawing\RegionTests.cs (57)
96
Assert.Equal(region.
GetRegionScans
(matrix), otherRegion.
GetRegionScans
(matrix));
177
], region.
GetRegionScans
(matrix));
188
Assert.Empty(region.
GetRegionScans
(matrix));
239
Assert.Empty(region.
GetRegionScans
(matrix));
268
Assert.Equal(region.
GetRegionScans
(matrix), clone.
GetRegionScans
(matrix));
348
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
365
], region.
GetRegionScans
(matrix));
382
], region.
GetRegionScans
(matrix));
399
], region.
GetRegionScans
(matrix));
434
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
450
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
468
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
487
graphics.DrawRectangles(Pens.Yellow, region1.
GetRegionScans
(matrix));
493
], region1.
GetRegionScans
(matrix));
784
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
796
Assert.Equal([new(20, 20, 20, 20)], region.
GetRegionScans
(matrix));
806
Assert.Equal([], region.
GetRegionScans
(matrix));
841
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
857
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
875
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1015
Assert.Equal([new(1, 2, 3, 4)], region.
GetRegionScans
(emptyMatrix));
1016
Assert.Equal([new(15, 23, 15, 24)], region.
GetRegionScans
(matrix));
1023
AssertExtensions.Throws<ArgumentNullException>("matrix", () => region.
GetRegionScans
(null));
1030
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().
GetRegionScans
(matrix));
1039
AssertExtensions.Throws<ArgumentException>(null, () => region.
GetRegionScans
(matrix));
1053
RectangleF[] rects = clipRegion.
GetRegionScans
(matrix);
1127
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1139
Assert.Equal([new Rectangle(1, 2, 3, 4)], region.
GetRegionScans
(matrix));
1174
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1187
Assert.Equal([new(-5, -5, 10, 10)], region.
GetRegionScans
(matrix));
1202
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1215
Assert.Equal([new(-5, -5, 10, 10)], region.
GetRegionScans
(matrix));
1232
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1449
Assert.Empty(region.
GetRegionScans
(matrix));
1689
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1701
Assert.Equal([new Rectangle(-4194304, -4194304, 8388608, 8388608)], region.
GetRegionScans
(matrix));
1737
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1753
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1771
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
1810
Assert.Equal([new(1, 2, 3, 4)], region.
GetRegionScans
(matrix));
1823
Assert.Equal([new(15, 23, 15, 24)], region.
GetRegionScans
(emptyMatrix));
1842
Assert.Equal([new(-4194304, -4194304, 8388608, 8388608)], region.
GetRegionScans
(emptyMatrix));
1856
Assert.Equal([new(-20, -5, 40, 10)], region.
GetRegionScans
(emptyMatrix));
1869
Assert.Equal([new(-10, 5, 40, 10)], region.
GetRegionScans
(emptyMatrix));
1895
Assert.Equal([new(1 + dx, 2 + dy, 3, 4)], region.
GetRegionScans
(matrix));
1907
Assert.Equal([new(0, 0, 20, 20)], region.
GetRegionScans
(matrix));
1918
Assert.Equal([new(1 + dx, 2 + dy, 3, 4)], region.
GetRegionScans
(matrix));
1930
Assert.Equal([new(0, 0, 20, 20)], region.
GetRegionScans
(matrix));
1942
Assert.Equal([new(-4194304, -4194304, 8388608, 8388608)], region.
GetRegionScans
(matrix));
1959
Assert.Empty(region.
GetRegionScans
(matrix));
2041
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
2059
], region.
GetRegionScans
(matrix));
2095
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
2111
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
2129
Assert.Equal(expectedScans, region.
GetRegionScans
(matrix));
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1053
else if (_links[0].VisualRegion?.
GetRegionScans
(e.GraphicsInternal.Transform) is { } regionRectangles
1319
&& link.VisualRegion.
GetRegionScans
(g.Transform) is { } regionRectangles && regionRectangles.Length > 0)