Esempio n. 1
0
        public void SEQHomothetiePolygoneLosange()
        {
            i = new ModeSequentiel();
            int testPolygone = -1;

            testPolygone = i.CreerLosange(posXMid, posYMid, 30, 50);
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.DimensionnerForme(testPolygone, 2);
            i.Afficher(displayTime);
        }
Esempio n. 2
0
        public void SEQHomothetieEllipse()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid, posYMid, 50, 80);
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.DimensionnerForme(testEllipse, 2);
            i.Afficher(displayTime);
        }
Esempio n. 3
0
        public void SEQImporterImage()
        {
            i = new ModeSequentiel();
            string fileName = "pikachu.png";
            string rootPath = new DirectoryInfo(Environment.CurrentDirectory).Parent.Parent.FullName;
            string path     = Path.Combine(rootPath, @"assets\", fileName);
            int    img      = i.CreerImage(100, 100, path);

            i.DimensionnerForme(img, .5f);
            Assert.IsTrue(img > 0);
            i.Afficher(displayTime);
        }
Esempio n. 4
0
        public void SEQHomothétieFormeLibre()
        {
            i = new ModeSequentiel();
            int testFormeLibre = -1;

            i.DescendreStylo();
            i.AvancerStylo(50);
            testFormeLibre = i.LeverStylo();
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.DimensionnerForme(testFormeLibre, 2);
            i.Afficher(displayTime);
        }