Form1.cs 722 B

12345678910111213141516171819202122232425262728
  1. using Azylee.Core.DrawingUtils.ImageUtils;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace Test.ImageToolTest
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Form1_Load(object sender, EventArgs e)
  20. {
  21. Bitmap b1 = new Bitmap(@"F:\图片压缩测试\未标题-1.jpg");
  22. byte[] b1_byte = IMG.Compression(b1, 30);
  23. File.WriteAllBytes(@"F:\图片压缩测试\未标题-1(Compression).jpg", b1_byte);
  24. }
  25. }
  26. }