27 lines
893 B
C#
27 lines
893 B
C#
namespace LSFileClient
|
|
{
|
|
using System;
|
|
using System.Windows.Forms;
|
|
using System.Drawing.Imaging;
|
|
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
private static void Main(string[] args)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
ClientManager.init(args);
|
|
// FormatTest();
|
|
}
|
|
public static void FormatTest()
|
|
{
|
|
string path = "C:\\Users\\Lskj-ZYW\\Desktop\\Image201812250005.bmp";// TODO: 初始化为适当的值
|
|
string savePath = "C:\\Users\\Lskj-ZYW\\Desktop\\Image201812250005.png"; // TODO: 初始化为适当的值
|
|
ImageFormat format = ImageFormat.Png; // TODO: 初始化为适当的值
|
|
ImageUtil.Format(path, savePath, format, ImageUtil.ImgDeep.D8, 1366, 1366);
|
|
}
|
|
}
|
|
}
|
|
|