Exemple #1
0
        public void TestRegionPixelCoordinatesAt1080_2()
        {
            CardPositions cp = new CardPositions(1920, 1080);
            PointF        pf = new PointF(0.043F, 0.285F);
            Point         p  = new Point(302, 308);

            Assert.AreEqual(p, cp.ToPixelCoordinates(pf));
        }
Exemple #2
0
        public void TestRegionPixelCoordinatesAt1080_1()
        {
            CardPositions cp = new CardPositions(1920, 1080);
            PointF        pf = new PointF(0.039F, 0.169F);
            Point         p  = new Point(296, 183);

            Assert.AreEqual(p, cp.ToPixelCoordinates(pf));
        }