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