Ejemplo n.º 1
0
 public void ImageWandCreateManyTest()
 {
     using (var wand = new MagickWand())
         using (var yellowPixelWand = new PixelWand("yellow"))
             using (var blackPixelWand = new PixelWand("black", 0.5))
             {
                 wand.NewImage(200, 200, "Blue");
                 wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                 wand.NewImage(200, 200, "red");
                 wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                 wand.NewImage(200, 200, "green");
                 wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                 wand.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));
             }
 }
Ejemplo n.º 2
0
        public void ImageWandCreateManyTest()
        {
            using (var wand = new MagickWand())
            using (var yellowPixelWand = new PixelWand("yellow"))
            using (var blackPixelWand = new PixelWand("black", 0.5))
            {
                wand.NewImage(200, 200, "Blue");
                wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                wand.NewImage(200, 200, "red");
                wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                wand.NewImage(200, 200, "green");
                wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                wand.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));

            }
        }
Ejemplo n.º 3
0
 public void ImageWandImageClassTest()
 {
     using (var wand = new MagickWand())
         using (var yellowPixelWand = new PixelWand("yellow"))
             using (var blackPixelWand = new PixelWand("black", 0.5))
             {
                 wand.NewImage(200, 200, "Blue");
                 wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                 var t = wand.GetImage();
                 //wand.Image.RotateImage("red", 45);
                 //t.RotateImage("red", 45);
                 t.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));
                 wand.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));
             }
 }
Ejemplo n.º 4
0
        public void ImageWandImageClassTest()
        {
            using (var wand = new MagickWand())
            using (var yellowPixelWand = new PixelWand("yellow"))
            using (var blackPixelWand = new PixelWand("black", 0.5))
            {
                wand.NewImage(200, 200, "Blue");
                wand.CurrentImage.DrawRoundRectangle(10, 10, wand.CurrentImage.Width - 10, 70, 5, 5, yellowPixelWand, blackPixelWand);
                var t = wand.GetImage();
                //wand.Image.RotateImage("red", 45);
                //t.RotateImage("red", 45);
                t.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));
                wand.SaveImages(Path.Combine(SaveDirectory, "logo_extent.jpg"));

            }
        }