Пример #1
0
 static void Main(string[] args)
 {
     //PrimeHoldingImage.Convert res = new PrimeHoldingImage.Convert();
     //res.ConvertImage("C:/Users/Xenomorph/Desktop/Untitled01.png", "C:/Users/Xenomorph/Desktop/Converted.gif", "gif");
     PrimeHoldingImage.Resize ress = new PrimeHoldingImage.Resize();
     ress.Process("C:/Users/Xenomorph/Desktop/Untitled.png", "C:/Users/Xenomorph/Desktop/Untitled.test", "scew", 500, 300, 0, 0);
 }
Пример #2
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     //check comboBox2 value
     if (comboBox2.SelectedItem.ToString().ToLower() == "skew")
     {
         saveFile();
         resize.Process(sourceFile, destinationFile, "scew", width, height, 0, 0);
         pictureBox1.Image    = new Bitmap(destinationFile);
         pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
         label2.Text          = "Image skew'd";
     }
     else if (comboBox2.SelectedItem.ToString().ToLower() == "crop")
     {
         saveFile();
         resize.Process(sourceFile, destinationFile, "crop", 0, 0, width, height);
         pictureBox1.Image    = new Bitmap(destinationFile);
         pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
         label2.Text          = "Image crop'd";
     }
 }