Form1.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Azylee.Core.DrawingUtils.ImageUtils;
  2. using Azylee.Core.WindowsUtils.APIUtils.WallpaperUtils;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.IO;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Windows.Forms;
  12. namespace Test.ImageToolTest
  13. {
  14. public partial class Form1 : Form
  15. {
  16. public Form1()
  17. {
  18. InitializeComponent();
  19. }
  20. private void Form1_Load(object sender, EventArgs e)
  21. {
  22. var md = Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils.WallpaperTool.GetToday();
  23. var md2 = Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils.WallpaperTool.GetYesterday();
  24. //string a = WallpaperTool.Get();
  25. //bool b = WallpaperTool.Set(@"C:\Users\yuzhengyang\Pictures\\cc.jpg");
  26. //Bitmap b1 = new Bitmap(@"F:\图片压缩测试\未标题-1.jpg");
  27. //byte[] b1_byte = IMG.Compression(b1, 30);
  28. //File.WriteAllBytes(@"F:\图片压缩测试\未标题-1(Compression).jpg", b1_byte);
  29. }
  30. }
  31. }