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