71 references to CoordinateSpace
System.Drawing (1)
System.Drawing.cs (1)
26
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
CoordinateSpace
))]
System.Drawing.Common (4)
Special\NotSupported.cs (4)
674
public void TransformPoints(System.Drawing.Drawing2D.
CoordinateSpace
destSpace, System.Drawing.Drawing2D.
CoordinateSpace
srcSpace, System.Drawing.PointF[] pts) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
675
public void TransformPoints(System.Drawing.Drawing2D.
CoordinateSpace
destSpace, System.Drawing.Drawing2D.
CoordinateSpace
srcSpace, System.Drawing.Point[] pts) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (66)
mono\System.Drawing\GraphicsTests.cs (4)
2948
g.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Device, pts);
2949
g.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Device, ptf);
System\Drawing\GraphicsTests.cs (62)
1688
CoordinateSpace
.Device,
1689
CoordinateSpace
.Page,
1696
CoordinateSpace
.Device,
1697
CoordinateSpace
.World,
1704
CoordinateSpace
.Page,
1705
CoordinateSpace
.Device,
1712
CoordinateSpace
.Page,
1713
CoordinateSpace
.World,
1720
CoordinateSpace
.World,
1721
CoordinateSpace
.Device,
1728
CoordinateSpace
.World,
1729
CoordinateSpace
.Page,
1737
public void TransformPoints_Points_Success(
CoordinateSpace
destSpace,
CoordinateSpace
srcSpace, Point[] points, Point[] expected)
1753
CoordinateSpace
.Device,
1754
CoordinateSpace
.Page,
1761
CoordinateSpace
.Device,
1762
CoordinateSpace
.World,
1769
CoordinateSpace
.Page,
1770
CoordinateSpace
.Device,
1777
CoordinateSpace
.Page,
1778
CoordinateSpace
.World,
1785
CoordinateSpace
.World,
1786
CoordinateSpace
.Device,
1793
CoordinateSpace
.World,
1794
CoordinateSpace
.Page,
1802
public void TransformPoints_PointFs_Success(
CoordinateSpace
destSpace,
CoordinateSpace
srcSpace, PointF[] points, PointF[] expected)
1815
[InlineData(
CoordinateSpace
.Device)]
1816
[InlineData(
CoordinateSpace
.World)]
1817
[InlineData(
CoordinateSpace
.Page)]
1818
public void TransformPoints_PointsAndSameCoordinateSpace_DoesNothing(
CoordinateSpace
space)
1831
[InlineData(
CoordinateSpace
.Device)]
1832
[InlineData(
CoordinateSpace
.World)]
1833
[InlineData(
CoordinateSpace
.Page)]
1834
public void TransformPoints_PointFsAndSameCoordinateSpace_DoesNothing(
CoordinateSpace
space)
1847
[InlineData(
CoordinateSpace
.World - 1)]
1848
[InlineData(
CoordinateSpace
.Device + 1)]
1849
public void TransformPoints_InvalidDestSpace_ThrowsArgumentException(
CoordinateSpace
destSpace)
1853
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(destSpace,
CoordinateSpace
.World, [new(1, 1)]));
1854
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(destSpace,
CoordinateSpace
.World, new PointF[] { new(1, 1) }));
1858
[InlineData(
CoordinateSpace
.World - 1)]
1859
[InlineData(
CoordinateSpace
.Device + 1)]
1860
public void TransformPoints_InvalidSourceSpace_ThrowsArgumentException(
CoordinateSpace
srcSpace)
1864
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.World, srcSpace, [new(1, 1)]));
1865
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.World, srcSpace, new PointF[] { new(1, 1) }));
1873
AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, (Point[])null));
1874
AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, (PointF[])null));
1882
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, Array.Empty<Point>()));
1883
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, Array.Empty<PointF>()));
1894
Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, [Point.Empty]));
1895
Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, [PointF.Empty]));
1910
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, [Point.Empty]));
1911
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(
CoordinateSpace
.Page,
CoordinateSpace
.Page, [PointF.Empty]));